SDL Manual Correction

2011-01-02 Thread Sheppy R
I remembered encountering an issue the first go through the manual, but wasn't really aware of the community at that time. I'm going back through the most recent version and came across the following 'typo'. I don't know why, but Im inclined to blame garu. pg. 33 - Remove the 'my' in line 51.

Re: SDL Manual Correction

2011-01-05 Thread Sheppy R
thakore.kar...@gmail.comwrote: Done at http://bit.ly/i0j3mc Thanks. On Sun, 2011-01-02 at 21:42 -0500, Sheppy R wrote: I remembered encountering an issue the first go through the manual, but wasn't really aware of the community at that time. I'm going back through the most recent version

SDLx::Surface-blit() Memory Issue Workaround

2011-01-05 Thread Sheppy R
I did some experimenting with blitting Surfaces. I think the main memory leak I've been seeing is coming from the creation of a new SDLx::Rect every time the Rect coordinates are passed as [x, y, h, w]. By comparing 5 different blits, I was able to find out that by declaring the SDLx::Rect once

Pong Velocity Fix

2011-01-06 Thread Sheppy R
In Pong from the SDL manual, I was experiencing an issue where the paddle movement was slower in one direction than the other. The cause of this is the way Perl and SDL handled the numbers passed. Anything between 0 and 1 was floored to 0, but anything -1 and 0 was floored to -1. Here is the