From: Kartik Thakore Date: Mon, 26 Oct 2009 15:37:38 +0000 (-0400) Subject: Updated surface test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=sdlgit%2FSDL_perl.git;a=commitdiff_plain;h=f7de3b2346513e78feab9aa9958ea5da1b18eb14 Updated surface test --- diff --git a/t/core_surface.t b/t/core_surface.t index 9e715e9..3fe549e 100644 --- a/t/core_surface.t +++ b/t/core_surface.t @@ -15,6 +15,7 @@ use SDL::Surface; use SDL::App; use SDL::Rect; use SDL::Color; +use SDL::Video; use SDL::PixelFormat; use Test::More tests => 35; @@ -91,8 +92,8 @@ my $rect = SDL::Rect->new( 0, 0, $app->w, $app->h ); my $blue_pixel = SDL::MapRGB( $app_pixel_format, 0x00, 0x00, 0xff ); SDL::FillRect( $app, $rect, $blue_pixel ); -SDL::UpdateRect( $app, 0, 0, 0, 0 ); -SDL::UpdateRects( $app, $small_rect ); +SDL::Video::update_rect( $app, 0, 0, 0, 0 ); +SDL::Video::update_rects( $app, $small_rect ); diag( 'This is in surface : ' . SDL::Surface::get_pixels($app) );