Skip to content

Commit

Permalink
Documented modification of dest_rect when blitting
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpalmer authored and garu committed Sep 28, 2011
1 parent 6a8e376 commit 17e6252
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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] - SDLx::Surface: added methods draw_trigon, draw_ellipse, draw_arc and draw_bezier [jtpalmer]
Bug fixes: Bug fixes:
- SDLx::Rect: fixed methods copy, move and inflate [jtpalmer] - SDLx::Rect: fixed methods copy, move and inflate [jtpalmer]
- SDLx::Surface: minor documentation update


* 2.534_01 June 13 2011 * 2.534_01 June 13 2011
- Using 'perl' instead of 'SDLPerl' to run silent tests on darwin [FROGGS] - Using 'perl' instead of 'SDLPerl' to run silent tests on darwin [FROGGS]
Expand Down
4 changes: 4 additions & 0 deletions lib/pods/SDLx/Surface.pod
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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, $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>. 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 Returns $self


=head2 blit_by =head2 blit_by
Expand All @@ -130,6 +132,8 @@ Returns $self
Does the same as C<blit> but the C<SDLx::Surface> is the one being blitted to. 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. 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 =head2 flip


Applies L<SDL::Video::flip|SDL::Video/"flip"> to the Surface, with error checking. Applies L<SDL::Video::flip|SDL::Video/"flip"> to the Surface, with error checking.
Expand Down

0 comments on commit 17e6252

Please sign in to comment.