From: Kartik Thakore Date: Sat, 10 Oct 2009 15:04:18 +0000 (-0400) Subject: fixed blit with new rect X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5ccf0b03b8b768a2b11d271f45929e4098c7374a;p=sdlgit%2FSDL_perl.git fixed blit with new rect --- diff --git a/lib/SDL/Surface.pm b/lib/SDL/Surface.pm index 897234c..6a78eb3 100644 --- a/lib/SDL/Surface.pm +++ b/lib/SDL/Surface.pm @@ -208,7 +208,9 @@ sub blit { croak "SDL::Surface::blit requires SDL::Surface objects" unless $_[2]->isa('SDL::Surface'); } - SDL::BlitSurface( $_[0], $_[1], ${$_[2]}, $_[3]); + #BlitSurface ( src, src_rect, dest, dest_rect ) + + SDL::BlitSurface( ${$_[0]}, $_[1], ${$_[2]}, $_[3]); } sub set_colors {