use SDL::App;
use SDL::Rect;
use SDL::Color;
-use Test::More tests => 15;
+use Test::More tests => 17;
my $surface
= SDL::Surface->new( SDL::SDL_ANYFORMAT(), 640, 320, 8, 0, 0, 0, 0 );
is( $clip_rect->w, 640, 'clip_rect has width' );
is( $clip_rect->h, 320, 'clip_rect has height' );
-my $image = SDL::Surface->load('test/data/logo.png');
+my $image = SDL::IMG_Load('test/data/logo.png');
is( $image->w, 608, 'image has width' );
is( $image->h, 126, 'image has height' );
pass 'did this pass';
+my $image_format = $image->display;
+isa_ok( $image_format, 'SDL::Surface' );
+
+my $image_format_alpha = $image->display_alpha;
+isa_ok( $image_format_alpha, 'SDL::Surface' );
+
my $rect = SDL::Rect->new( 0, 0, $app->w, $app->h );
my $blue = SDL::Color->new( 0x00, 0x00, 0xff, );