Hi all, I'm seeing a problem where a bitmap is painting with the wrong colors if it is first painted on an offscreen window, and then copied to the screen window. (The colors are completely wrong -- they are not dithered or anything like that.) However, if I paint the bitmap directly onto the screen window, then it paints with the correct colors. It appears as if there is a problem with the palettes being mismatched.
Specifically, it works correctly if I do this on the screen window: BitmapPtr bmP = GetMyBitmap(); WinDrawBitmap(bmP,20,25); However, if I first paint it to an offscreen window, then this is where the colors are wrong: offscreenhWnd = WinCreateOffscreenWindow(gScreenWidth, gScreenHeight -gTitleHeight, nativeFormat, &screenErr); WinSetDrawWindow (offscreenhWnd); BitmapPtr bmP = GetMyBitmap(); WinDrawBitmap(bmP,20,25); WinCopyRectangle (offscreenhWnd, screenhWnd, &srcRect, 0, 0, winPaint); Note that the offscreen window is created in "nativeFormat," but the problem also occurs using "genericFormat" and "screenFormat." Also note that the Bitmap in question has a palette associated with it. So I'm assuming that there is some step I am missing related to the bitmap's palette. (But then why does it work correctly if I blit directly to the screen?) Thanks in advance!! -- Chris -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
