I think You can use this ....
get old palette/info's:
WinScreenMode(winScreenModeGet,NULL,NULL, &depth,NULL);
WinPalette(winPaletteGet, 0, NULL, palette);
WinPalette(winPaletteGet, 0, ColCount, NULL);
Set new palette:
WinScreenMode(winScreenModeSet,NULL,NULL,&depth,NULL);
WinPalette(winPaletteSet,0, 16, palette);
ReSet:
WinScreenMode(winPaletteSetToDefault, NULL,NULL,NULL, NULL);
static RGBColorType palette[] = {
{ 0, 0xff, 0xff, 0xff },
{ 1, 0xf0, 0xf0, 0xf0 },
{ 2, 0xe0, 0xe0, 0xe0 },
{ 3, 0xd0, 0xd0, 0xd0 },
{ 4, 0xc0, 0xc0, 0xc0 },
{ 5, 0xb0, 0xb0, 0xb0 },
{ 6, 0xa0, 0xa0, 0xa0 },
{ 7, 0x90, 0x90, 0x90 },
{ 8, 0x80, 0x80, 0x80 },
{ 9, 0x70, 0x70, 0x70 },
{ 10, 0x50, 0x50, 0x50 },
{ 11, 0x40, 0x40, 0x40 },
{ 12, 0x30, 0x30, 0x30 },
{ 13, 0x20, 0x20, 0x20 },
{ 14, 0x10, 0x10, 0x10 },
{ 15, 0x00, 0x00, 0x00 }
};
"Chris Apers" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi,
>
> Does anyone know how to create a ColorTableType from a given RGBColorType
> table since we can't acces the
>
> // RGBColorType entry[];
>
> pointer ?
> Thanks
> Chris
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/