From: Kartik Thakore Date: Mon, 26 Oct 2009 15:41:39 +0000 (-0400) Subject: Test fix for SDL_TTF pixel offset in windows X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4865f3afb1c1fe7c39df84bdc7dc863a9e64e6bf;p=sdlgit%2FSDL_perl.git Test fix for SDL_TTF pixel offset in windows --- diff --git a/t/core_ttf.t b/t/core_ttf.t index cb6a9f9..b59926d 100644 --- a/t/core_ttf.t +++ b/t/core_ttf.t @@ -26,7 +26,8 @@ is( ($h == 14) || ($h == 15), 1, '"Hello!" has width 14' ); my $surface = SDL::TTF_RenderText_Blended( $ttf_font, 'Hello!', SDL::Color->new( 255, 0, 0 ) ); isa_ok( $surface, 'SDL::Surface' ); -is( $surface->w, 27, 'Surface has width 27' ); -is( $surface->h, 14, 'Surface has width 14' ); +($w,$h) = ( $surface->w, $surface->h) ; +is( ($w == 27) || ($w == 28), 1 ,'Surface has width 27' ); +is( ($h == 14) || ($h == 15), 1, 'Surface has width 14' ); SDL::TTF_Quit();