X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcore_surface.t;h=9e715e9981a8656355ba10d9d27a6ec32f07df6d;hb=20f544ea4f3e7b34c68445aba89ed9c69d411ddf;hp=d87811c8e9c0d73cf0cbb3d8ced280896101e489;hpb=350e894348b0c3a73f203014ba6d92cdb4f7f4ee;p=sdlgit%2FSDL_perl.git diff --git a/t/core_surface.t b/t/core_surface.t index d87811c..9e715e9 100644 --- a/t/core_surface.t +++ b/t/core_surface.t @@ -79,10 +79,10 @@ my $app = SDL::App->new( pass 'did this pass'; -my $image_format = $image->display; +my $image_format = SDL::DisplayFormat($image); isa_ok( $image_format, 'SDL::Surface' ); -my $image_format_alpha = $image->display_alpha; +my $image_format_alpha = SDL::DisplayFormatAlpha($image); isa_ok( $image_format_alpha, 'SDL::Surface' ); my $app_pixel_format = $app->format; @@ -92,6 +92,7 @@ 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 ); diag( 'This is in surface : ' . SDL::Surface::get_pixels($app) );