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.48 by root, Sun Apr 9 22:26:09 2006 UTC vs.
Revision 1.49 by root, Sun Apr 9 22:26:51 2006 UTC

81 glPushMatrix; 81 glPushMatrix;
82 glTranslate $self->{x}, $self->{y}, 0; 82 glTranslate $self->{x}, $self->{y}, 0;
83 $self->_draw; 83 $self->_draw;
84 if ($self == $::HOVER) { 84 if ($self == $::HOVER) {
85 glColor 1, 1, 1, 0.4; 85 glColor 1, 1, 1, 0.4;
86 glEnable GL_BLEND;
87 glBegin GL_QUADS; 86 glBegin GL_QUADS;
88 glVertex 0, 0; 87 glVertex 0, 0;
89 glVertex $self->{w} - 1, 0; 88 glVertex $self->{w} - 1, 0;
90 glVertex $self->{w} - 1, $self->{h} - 1; 89 glVertex $self->{w} - 1, $self->{h} - 1;
91 glVertex 0, $self->{h} - 1; 90 glVertex 0, $self->{h} - 1;
92 glEnd; 91 glEnd;
93 glDisable GL_BLEND;
94 } 92 }
95 glPopMatrix; 93 glPopMatrix;
96} 94}
97 95
98sub _draw { 96sub _draw {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines