Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Documented modification of dest_rect when blitting

  • Loading branch information...
commit 17e6252080fe996498f7a297bb3ad430068b2767 1 parent 6a8e376
@jtpalmer jtpalmer authored garu committed
Showing with 5 additions and 0 deletions.
  1. +1 −0  CHANGELOG
  2. +4 −0 lib/pods/SDLx/Surface.pod
@@ -15,6 +15,7 @@ Revision history for Perl extension SDL_perl.
- SDLx::Surface: added methods draw_trigon, draw_ellipse, draw_arc and draw_bezier [jtpalmer]
Bug fixes:
- SDLx::Rect: fixed methods copy, move and inflate [jtpalmer]
+ - SDLx::Surface: minor documentation update
* 2.534_01 June 13 2011
- Using 'perl' instead of 'SDLPerl' to run silent tests on darwin [FROGGS]
4 lib/pods/SDLx/Surface.pod
@@ -121,6 +121,8 @@ Blits C<SDLx::Surface> onto $dest surface.
$src_rect or $dest_rect are optional. If $src_rect is ommited, it will be the size of the entire surface. If $dest_rect is ommited,
it will be blitted at C<(0, 0)>. $src_rect or $dest_rect can be array refs or C<SDL::Rect>. $dest can be C<SDLx::Surface> or C<SDL::Surface>.
+Note that the final blit rectangle is stored in $dest_rect after clipping is performed.
Returns $self
=head2 blit_by
@@ -130,6 +132,8 @@ Returns $self
Does the same as C<blit> but the C<SDLx::Surface> is the one being blitted to.
This is useful when the surface you have isn't an C<SDLx::Surface>, but the surface it is being blitted to is.
+Note that the final blit rectangle is stored in $dest_rect after clipping is performed.
=head2 flip
Applies L<SDL::Video::flip|SDL::Video/"flip"> to the Surface, with error checking.
Please sign in to comment.
Something went wrong with that request. Please try again.