Hi, Here is my init code : // here we are in 8bit mode _ctbl = (ColorTableType *)MemPtrNew(sizeof (ColorTableType) + (256 * sizeof(RGBColorType))); _ctbl->numEntries = 256; _offParentP = BmpCreate(w, h, 8, _ctbl, &e);
_screenH = WinGetDisplayWindow(); _offScreenP = BmpCreateBitmapV3(_offParentP, kDensityDouble, BmpGetBits(_offParentP), _ctbl); _offScreenH = WinCreateBitmapWindow((BitmapPtr)_offScreenP, &e); Then to update the screen i do : // here we are in 16bit mode WinSetDrawWindow(_offScreenH); WinPalette(winPaletteSet, 0, 256, _pal); WinSetDrawWindow(_screenH); WinDrawBitmap((BitmapPtr)_offScreenP, (320 - _screenWidth) / 2, (320 - _screenHeight) / 2); But, if i quit my app and relaunch it 3 times, it crashes on WinPalette (??) Ths screen itself is in 16bit. Any idea ? Thanks -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Chris Apers Envoyé : vendredi 1 juillet 2005 10:49 À : Palm Developer Forum Objet : using BmpCreateBitmapV3 Hi, I'd like to know how to associate a palette using BmpCreateBitmapV3. I don't know how to use the ColorTableType. Thanks Chris -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/