X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSDL%2FApp.pm;h=542b79fb4c31043459286daa8d014889c5973db7;hb=e853497ac6c8b125554ca0f7e1c8463798717317;hp=86e4ea4e2e9158849bf7ee44894dacd9bbb04b9d;hpb=9494562d9b14f27a7f8fcf53a0df92a3c1e147b5;p=sdlgit%2FSDL_perl.git diff --git a/lib/SDL/App.pm b/lib/SDL/App.pm index 86e4ea4..542b79f 100644 --- a/lib/SDL/App.pm +++ b/lib/SDL/App.pm @@ -62,7 +62,7 @@ sub new { my $init = defined $options{-init} ? $options{-init} : SDL_INIT_EVERYTHING(); - SDL::Init($init); + SDL::init($init); #SDL::Init(SDL::SDL_INIT_EVERYTHING()); @@ -113,7 +113,7 @@ sub new { } my $self = SDL::SetVideoMode($w,$h,$d,$f) - or croak SDL::GetError(); + or croak SDL::geterror(); if ($ic and -e $ic) { my $icon = new SDL::Surface -name => $ic; @@ -157,7 +157,7 @@ sub ticks { } sub error { - return SDL::GetError(); + return SDL::geterror(); } sub warp ($$$) {