I've used this code with graphics that have color tables and it runs rather
fast, so I think it may have something to do with your colortable.
Boolean LoadColorTable( BitmapPtr pBitmap )
{
DWORD ulPixelDepthScreen;
ColorTableType * pColorTable = NULL;
MyWinScreenMode(winScreenModeGet,NULL,NULL,&ulPixelDepthScreen,NULL);
//handle color table, if necessary
if (ulPixelDepthScreen == 8)
{
WORD uPixelDepthBmp;
while (pBitmap && ((uPixelDepthBmp = BmpGlueGetBitDepth(pBitmap)) <
8))
{
pBitmap = BmpGlueGetNextBitmap(pBitmap);
}
if ((uPixelDepthBmp == 8) && pBitmap)
{
pColorTable = BmpGetColortable (pBitmap);
if (pColorTable)
{
WinPalette (winPaletteSet, 0, pColorTable->numEntries,
ColorTableEntries(pColorTable));
}
}
}
return pColorTable != NULL;
}
--
Bill Andreozzi
STATus Pro, Inc.
Phone: 425.869.0854
Mobile: 425.260.1127
E-mail: [EMAIL PROTECTED]
"Chris Apers" <[EMAIL PROTECTED]> wrote in message
news:101170@;palm-dev-forum...
>
> Hi,
>
> Does anyone know a way to set the system palette (8bits)
> without WinPalette, because this function is extremely slow :
> more than 1sec. to set the pal.
>
> thanx
>
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/