Permalink
Browse files

Using bmp file if libpng isnt available in t/sdlx_sfont.t [#177]

  • Loading branch information...
Tobias Leich
Tobias Leich committed Jul 23, 2010
1 parent dcf2a88 commit c67d5444a4eef51ce058104dd71cbb8bab1a56bf
Showing with 6 additions and 2 deletions.
  1. +4 −1 CHANGELOG
  2. +2 −1 t/sdlx_sfont.t
  3. BIN test/data/font.bmp
View
@@ -1,5 +1,8 @@
Revision history for Perl extension SDL_perl.
+NEXT
+ - Using bmp file if libpng isnt available in t/sdlx_sfont.t [#177] [FROGGS]
+
* 2.503
- Removed examples/adventure/
- Removed dashes from SDLx::App constructor [#176] [Blaizer]
@@ -9,7 +12,7 @@ Revision history for Perl extension SDL_perl.
- Added draw functions to SDLx::Surface
- Cleaned up Sprite inheritance from Surface
- Fixed bug in SDL::Event::key_mod, it returned pointer instead of int [FROGGS]
- - SDLx::App now depends on SDLx::Surface
+ - SDLx::App now depends on SDLx::Surface
* 2.502
- Displaying Alien::SDL's build option for every build step [FROGGS]
View
@@ -27,7 +27,8 @@ elsif ( !SDL::Config->has('SDL_image') ) {
#Make a surface
#Select a font
my $d = SDL::Surface->new( SDL_SWSURFACE, 100, 100, 32 );
-my $font = SDLx::SFont->new('test/data/font.png');
+my $font = SDLx::SFont->new(
+ 'test/data/font.' . ( SDL::Config->has('png') ? 'png' : 'bmp' ) );
isa_ok( $font, 'SDL::Surface', '[new] makes surface' );
View
Binary file not shown.

0 comments on commit c67d544

Please sign in to comment.