Dear forum members,

I've run into a problem with BmpCreateV3 and I was wondering if anyone
has seen and/or solved this. This would be relevant for apps that use
8-bit graphics, double buffering, and hires. Here's the setup:

1. On an OS5 hires device (such as Zire 71), set screen mode to 16-bpp.

2. Create a 320x320x8bpp bitmap with BmpCreate, with a color table.

3. Create a V3 bitmap using BmpCreateV3 from the previous bitmap,
passing NULL for the color table (so it should be copied from the V2
bitmap), setting density to double.

At this point if I create a window from the V3 bitmap, draw to it, and
then use WinCopyRectangle to copy it onscreen, the colors are not
correct. And if I call BmpColortableSize on the V3 bitmap, it returns
2 (instead of, say, 1026).

If I pass the color table I created for the V2 bitmap into
BmpCreateV3, then draw to and copy the V3 onscreen, some of the colors
are correct but others are not. And BmpColortableSize on the V3 bitmap
returns 6.

The V2 bitmap works just fine, with the color table, with screen set
to 16bpp. It's only the V3 version that is having a problem, and it
looks like the colortable is either not getting created/copied
correctly by BmpCreateV3, or it is getting corrupted somehow.

Any help or suggestions would be appreciated. Thanks,

-Justin Clark
Copera, Inc.
[EMAIL PROTECTED]

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

Reply via email to