--- deliantra/Deliantra-Client/DC/MapWidget.pm 2006/05/22 03:40:43 1.32 +++ deliantra/Deliantra-Client/DC/MapWidget.pm 2006/05/24 21:49:58 1.35 @@ -117,14 +117,14 @@ glEnable GL_CONVOLUTION_2D; } + $self->{fow_texture_name} ||= glGenTexture; # try to re-use the texture name: TODO improve texture class instead - my $prev_name = ((delete $self->{fow_texture}) || {})->{name}; $self->{fow_texture} = new CFClient::Texture w => $w, h => $h, data => $data, - name => $prev_name, # a bit hackish + name => $self->{fow_texture_name}, internalformat => GL_ALPHA, format => GL_ALPHA; @@ -171,7 +171,7 @@ y => 0, z => 1, ellipsise => 0, - text => "Map Out of Focus (click map to play)"; + text => "map out of focus (click map to play)"; $label->show; $label->update; @@ -482,6 +482,7 @@ sort { $a->[1] <=> $b->[1] or $self->{command}{$a->[0]}[4] <=> $self->{command}{$b->[0]}[4] + or (length $a->[0]) <=> (length $b->[0]) } @match; $self->{last_search} = $cmd;