Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

B3SA984: Added Note to POD explaining that updating the rect's x squi…

…shes its w, which needs restoration before reuse.
  • Loading branch information...
commit b198a53ab3c3dbe7dd6e9bc338656b421f8226c3 1 parent 260d001
@pip pip authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/pods/SDL/Tutorial/Animation.pod
6 lib/pods/SDL/Tutorial/Animation.pod
@@ -103,6 +103,12 @@ and provided you don't need the optimal speed necessary (since blitting every
object takes more work than just blitting the portions you need), this works
quite well.
+B<Note:> When you loop C<$rect>'s x position to the C<$app>'s width, the
+rect's C<w> (width) automatically gets shrunk to fit the window. Once the
+x position reaches 640, the w is 0. In order to reuse the C<$rect> from above
+for below, you'll need to first restore the initial width with the C<$rect>'s
+C<w()> member.
=head2 Undrawing the Updated Rectangle
If you need more speed or want to make a different complexity tradeoff, you can

0 comments on commit b198a53

Please sign in to comment.
Something went wrong with that request. Please try again.