X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcore_video.t;h=fe3d5d74a0abe4fe096644327db277e77f9abe1c;hb=95f5be308db86ed665a21a6d0c99aa5acb0b3409;hp=51aa077646de30af208f895cbccf618ef76d9ffd;hpb=a677489e629dc8dcfe5d0367335265c1a8b0c1a7;p=sdlgit%2FSDL_perl.git diff --git a/t/core_video.t b/t/core_video.t index 51aa077..fe3d5d7 100644 --- a/t/core_video.t +++ b/t/core_video.t @@ -1,8 +1,4 @@ #!/usr/bin/perl -w -BEGIN { - unshift @INC, 'blib/lib','blib/arch'; -} - use strict; use SDL; use SDL::Config; @@ -16,6 +12,16 @@ use_ok( 'SDL::Video' ); can_ok ('SDL::Video', qw/ get_video_surface get_video_info + /); + +#testing get_video_surface +SDL::Init(SDL_INIT_VIDEO); + +my $display = SDL::SetVideoMode(640,480,32, SDL_SWSURFACE ); + +isa_ok(SDL::Video::get_video_surface(), 'SDL::Surface', 'Checking if we get a surface ref back'); + +=skip video_driver_name list_modes video_mode_ok