Skip to content

Commit

Permalink
Do not need to fail ttf font if SDL::Debug not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Thakore committed Aug 17, 2009
1 parent 3e4c401 commit 5dc5fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SDL/Tool/Font.pm
Expand Up @@ -77,7 +77,7 @@ sub DESTROY {
sub print {
my ($self,$surface,$x,$y,@text) = @_;
croak "Tool::Font::print requires a SDL::Surface\n"
unless ($SDL::DEBUG && $surface->isa('SDL::Surface'));
unless ($surface->isa('SDL::Surface'));
if ($$self{-font}->isa('SDL::Font')) {
$$self{-font}->use();
SDL::SFont::PutString( $$surface, $x, $y, join('',@text));
Expand Down

0 comments on commit 5dc5fc0

Please sign in to comment.