On Thu, 2003-08-14 at 16:51, kcorey wrote:
> Hi All,
> 
> I've run into a strange thing that's killing my application on a
> Tungsten|T device.
> 
> I've set the screen to 320x320x8. (The screen cleared and there was no
> error, so far so good).  I then set the coordinate system to the native
> coordinate system with        kCoordinatesNative.
> 
> Then I allocate a 320x320x8 offscreen buffer, in nativeFormat.

Oops...this should be a 320x300x8 offscreen buffer, specifying
'nativeFormat'.

> The problem is, that buffer is being allocated 384000 bytes of data
> space, and 24 bytes of header space.
> 
> At 8 bits per pixel, it seems to me it shouldn't be bigger than 102,400,
> plus the (24) header bytes.  Heck, even at 16 bits per pixel, it should
> be no larger than 204,400, I think.  
> 
> Can anyone explain where the rest of the size went to?

When I allocate a smaller window, say 160x150x8, it's 24000 bytes, which
is exactly as I'd expect.

It's a real puzzler.

-Ken


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to