Merge branch 'master' of github.com:kthakore/SDL_perl
Kartik Thakore [Sat, 10 Oct 2009 15:04:49 +0000 (11:04 -0400)]
lib/SDL/Surface.pm

index 4485824..5b2b316 100644 (file)
@@ -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 {