Skip to content

Commit

Permalink
Using bmp file if libpng isnt available in t/sdlx_sfont.t [#177]
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Leich committed Jul 23, 2010
1 parent dcf2a88 commit c67d544
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG
@@ -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]
Expand All @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion t/sdlx_sfont.t
Expand Up @@ -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' );

Expand Down
Binary file added test/data/font.bmp
Binary file not shown.

0 comments on commit c67d544

Please sign in to comment.