Thanks, I've decided to mostly hardcode widths and heights for the sprite engine I was working on http://www.blitzmax.com/Community/posts.php?topic=48250, it just makes everything much easier. But this stuff can be usefull for other things. Thank you.