Chris Apers wrote:
>
> I need to draw a bitmap from an 8bit offscreen window which
> need a custom palette into a 16bit screen, but WinPalette
> seem to set the palette in this mode only on Zodiac.
>
> Is there a way, to fix this ?
> I tried to create a BitmapV3 with the palette but the colors are not
> (always) corrects.
Is the palette stored with the Bitmap resource? If not, then I'm guessing the
system uses the system's color palette when you use WinDrawBitmap.
As I recall, when I had to do this, WinPalette had no effect if the screen was
set to 16-bit color mode. Instead I dynamically made a lookup table to go from
palette indices to the appropriate 16-bit RGB values, created a new 16-bit
BitmapRsrc, and wrote all of its data bits directly.
- James
__________________________________
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and more. Check it out!
http://discover.yahoo.com/mobile.html
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/