--- deliantra/Deliantra-Client/DC/MapWidget.pm 2006/05/25 02:23:14 1.38 +++ deliantra/Deliantra-Client/DC/MapWidget.pm 2006/05/27 20:46:54 1.40 @@ -206,7 +206,7 @@ my ($w, $h, $data) = $::MAP->draw ($sx, $sy, 0, 0, $sw + 1, $sh + 1); if ($::CFG->{fow_enable}) { - if ($::CFG->{fow_smooth} && $CFClient::GL_VERSION >= 1.2) { # smooth fog of war + if ($::CFG->{fow_smooth} && $CFClient::OpenGL::GL_VERSION >= 1.2) { # smooth fog of war glConvolutionParameter (GL_CONVOLUTION_2D, GL_CONVOLUTION_BORDER_MODE, GL_CONSTANT_BORDER); glConvolutionFilter2D ( GL_CONVOLUTION_2D, @@ -408,10 +408,10 @@ ]; $self->{entry} = new CFClient::UI::Entry - connect_changed => sub { + on_changed => sub { $self->update_labels; }, - connect_key_down => sub { + on_key_down => sub { my ($entry, $ev) = @_; my $self = $entry->{parent}{parent}; @@ -523,11 +523,11 @@ sort { $a->[1] <=> $b->[1] or $self->{command}{$a->[0]}[4] <=> $self->{command}{$b->[0]}[4] - or (length $a->[0]) <=> (length $b->[0]) + or (length $b->[0]) <=> (length $a->[0]) } @match; } - $self->{last_search} = $cmd; + $self->{last_search} = $text; $self->{last_match} = \@match; $self->{select_offset} = 0;