At 12:02 PM -0500 7/30/03, Eric wrote:
The +1 is because SpriteSurface uses -1,-1 at first and will cause
an outofbounds error when trying to access that in the array.
So I just need to changed the -1,-1 to 0,0 if xpos and ypos = -1.
That fixed that problem. YEA!!!!!!!
....as long as you don't scroll, or we don't change the implementation
to buffer more of the surrounding area. A much better solution would
be to compare the xpos and ypos the PaintTile event gives you against
the bounds of your array, and if it's out of bounds, just return.
- Joe
--
,------------------------------------------------------------------.
| Joseph J. Strout REAL Software, Inc. |
| joe at realsoftware dot com http://www.realsoftware.com |
`------------------------------------------------------------------'
---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.
|