Skip to content

Commit

Permalink
Added patch to selectively init Modes for SDL::APP and also moved to …
Browse files Browse the repository at this point in the history
…v2.2.2
  • Loading branch information
Kartik Thakore committed Aug 22, 2009
1 parent 31817c4 commit c383be0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/SDL.pm
Expand Up @@ -55,7 +55,7 @@ sub import {
SDL::Constants->export_to_level(1);
}

$VERSION = '2.2.1';
$VERSION = '2.2.2';

print "$VERSION" if (defined($ARGV[0]) && ($ARGV[0] eq '--SDLperl'));

Expand Down
10 changes: 8 additions & 2 deletions lib/SDL/App.pm
Expand Up @@ -55,10 +55,16 @@ sub new {
-red_accum_size -ras -blue_accum_size -bas
-green_accum_sizee -gas -alpha_accum_size -aas
-double_buffer -db -buffer_size -bs -stencil_size -st
-asyncblit
-asyncblit -init
/ ) if ($SDL::DEBUG);

SDL::Init(SDL::SDL_INIT_EVERYTHING());
# SDL_INIT_VIDEO() is 0, so check defined instead of truth.
my $init = defined $options{-init} ? $options{-init} :
SDL_INIT_EVERYTHING();

SDL::Init($init);

#SDL::Init(SDL::SDL_INIT_EVERYTHING());

my $t = $options{-title} || $options{-t} || $0;
my $it = $options{-icon_title} || $options{-it} || $t;
Expand Down

0 comments on commit c383be0

Please sign in to comment.