David wrote:- The problem is that you're assuming that all the data of a bitmap is contiguous in memory. That isn't necessarily the case: the header of a bitmap can sometimes be a different memory chunk from the bits that make it up. The header sometimes contains a pointer to the bits, and sometimes it follows it directly in memory.
There is a bunch of code in the seeding area of the Pavilion on palmos.com which is designed to demonstrate the right way to do things like this. It'll eventually be made public but it isn't quite as polished as they want, I believe. Check it out - it is called BmpRsc I think. ----------------------------------------------- I'm something of a PalmOS newbie (so you should take this with a pinch of salt :) ), but my understanding is that if a bitmap has its indirect bit set, then the bitmap data (i.e. the pixels) is indeed stored elsewhere; i.e. the bitmap data is non-contiguous. Furthermore, the only bitmap that has this flag set is that of the screen! (p491 Palm OS programmers API reference.) So this is very probably your problem. This is just a slight expansion of David's point. Hope this helps, Simon _________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
