--- deliantra/Deliantra-Client/DC/UI.pm 2006/08/13 15:14:17 1.343 +++ deliantra/Deliantra-Client/DC/UI.pm 2006/08/13 16:29:36 1.344 @@ -911,8 +911,6 @@ sub _draw { my ($self) = @_; - my ($w, $h) = @$self{qw(w h)}; - my $tex = $self->{texture} or return; @@ -920,7 +918,7 @@ glTexEnv GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE; glColor 0, 0, 0, 1; - $tex->draw_quad_alpha_premultiplied (0, 0, $w, $h); + $tex->draw_quad_alpha_premultiplied (0, 0); glDisable GL_TEXTURE_2D; } @@ -1952,10 +1950,9 @@ @$self{qw(cur_x cur_y cur_h)} = $self->{layout}->cursor_pos (length $text) } - glColor @{$self->{fg}}; glBegin GL_LINES; - glVertex $self->{cur_x} + $self->{ox}, $self->{cur_y} + $self->{oy}; - glVertex $self->{cur_x} + $self->{ox}, $self->{cur_y} + $self->{oy} + $self->{cur_h}; + glVertex 0.5 + $self->{cur_x} + $self->{ox}, $self->{cur_y} + $self->{oy}; + glVertex 0.5 + $self->{cur_x} + $self->{ox}, $self->{cur_y} + $self->{oy} + $self->{cur_h}; glEnd; } }