Skip to content

Commit

Permalink
need stop not
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rodo committed Oct 3, 2010
1 parent 99ef459 commit 4f10e2f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scroller.pl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@

$app->add_event_handler(
sub {
return 0 if $_[0]->type == SDL_QUIT;
$_[1]->stop if $_[0]->type == SDL_QUIT || $quit;

my $key = $_[0]->key_sym;
my $name = SDL::Events::get_key_name($key) if $key;
Expand All @@ -212,8 +212,6 @@
elsif ( $_[0]->type == SDL_KEYUP ) {
$pressed->{$name} = 0;
}

return 1 if !$quit;
}
);

Expand Down

0 comments on commit 4f10e2f

Please sign in to comment.