From: Kartik Thakore Date: Sat, 15 Aug 2009 18:45:38 +0000 (-0400) Subject: Surface errors X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=286406b7b4fa3542a49d7144a4adf6315b5734c1;p=sdlgit%2FSDL_perl.git Surface errors --- diff --git a/lib/SDL/Surface.pm b/lib/SDL/Surface.pm index 378907e..7075482 100644 --- a/lib/SDL/Surface.pm +++ b/lib/SDL/Surface.pm @@ -210,7 +210,7 @@ sub blit { unless $_[2]->isa('SDL::Surface'); } - SDL::BlitSurface(map { (defined($_) && $_ != 0)? ${$_} : croak "SDL::blit() Parameters need to be defined" } @_) if defined(@_); + SDL::BlitSurface(map { (defined($_) && $_ != 0)? ${$_} : $_ } @_) if defined(@_); } sub set_colors {