I've created a Palm OS 4.0 application, complete with source code and a
CodeWarrior for Palm R7.x project file, that demonstrates a bug with Palm's
handling of PackBits compression for 16-bpp color bitmaps.

You can download the source code and CW project files here:
   http://www.user.dccnet.com/dougmc/packbug.zip

This project requires Palm OS 4.0 SDK, and you'll have to run it on a device
capable of doing 16-bpp color (like the Palm m505, or equivalent Palm OS
Emulator ROM).

To use, run the app, and it should show a bitmap in 16-bpp color mode.  This
is using the a non-compressed bitmap.  Select the checkbox to Use PackBits,
and the colors should go all nuts.  The PackBits bug ONLY seems to be
present for 16-bpp color bitmaps, as all other color depths appear to work
fine.

Any and all comments are welcomed.  Can anyone see ANYTHING that I'm doing
wrong which would cause this?  I'd like to make sure it's really a Palm OS
bug before I attempt to contact Palm about it.

Thanks,
Doug.

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

Reply via email to