Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

spurious error: "Tool::Font::print requires a SDL::Surface" #3

Closed
kthakore opened this Issue · 1 comment

1 participant

@kthakore
Owner

A bug from the cpan boards. I got this one too. Trying out the following patch.

--- lib/SDL/Tool/Font.pm 2009/07/15 01:40:00 1.1
+++ lib/SDL/Tool/Font.pm 2009/07/15 01:40:22
@@ -46,7 +46,7 @@
sub print {
my ($self,$surface,$x,$y,@text) = @_;
die "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));
@kthakore
Owner

added this to bugfixes branch. Seems to work fine now. Closing

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.