geterror to get_error
[sdlgit/SDL_perl.git] / t / core_video.t
index 81001ef..8821652 100644 (file)
@@ -40,7 +40,7 @@ SDL::init(SDL_INIT_VIDEO);
 my $display = SDL::Video::set_video_mode(640,480,32, SDL_SWSURFACE );
 
 if(!$display){
-        plan skip_all => 'Couldn\'t set video mode: '. SDL::geterror();
+        plan skip_all => 'Couldn\'t set video mode: '. SDL::get_error();
     }
 
 #diag('Testing SDL::Video');
@@ -92,7 +92,7 @@ for(my $i=0;$i<256;$i++){
 my $hwdisplay = SDL::Video::set_video_mode(640,480,8, SDL_HWSURFACE );
 
 if(!$hwdisplay){
-        plan skip_all => 'Couldn\'t set video mode: '. SDL::geterror();
+        plan skip_all => 'Couldn\'t set video mode: '. SDL::get_error();
     }
 
 $value = SDL::Video::set_colors($hwdisplay, 0);