ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/UI.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/UI.pm (file contents):
Revision 1.285 by root, Mon Jun 5 03:07:01 2006 UTC vs.
Revision 1.286 by root, Mon Jun 5 03:48:49 2006 UTC

1651 }; 1651 };
1652 1652
1653 glEnable GL_TEXTURE_2D; 1653 glEnable GL_TEXTURE_2D;
1654 glTexEnv GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE; 1654 glTexEnv GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE;
1655 1655
1656 glColor_premultiply @{$self->{fg}}
1657 if $tex->{format} == GL_ALPHA; 1656 if ($tex->{format} == GL_ALPHA) {
1658 1657 glColor @{$self->{fg}};
1658 $tex->draw_quad_alpha ($self->{ox}, $self->{oy});
1659 } else {
1659 $tex->draw_quad_alpha_premultiplied ($self->{ox}, $self->{oy}); 1660 $tex->draw_quad_alpha_premultiplied ($self->{ox}, $self->{oy});
1661 }
1660 1662
1661 glDisable GL_TEXTURE_2D; 1663 glDisable GL_TEXTURE_2D;
1662} 1664}
1663 1665
1664############################################################################# 1666#############################################################################

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines