When I change bit depth via WinScreenMode in my color program (that is
called via SysAppLaunch from another calling program), upon returning to the
original program, that program's screen does not redraw correctly.

I read the following in the documentation:

"When a window is created, and if the window's associated bitmap does not
have its own color table, the window will use the system's default color
translation tables when a blitting operation occurs to that window. When the
system's bit depth changes, the system's default color translation tables
are recalculated based on the new screen depth. When the blit occurs at the
new screen depth to the offscreen window, the color translation tables are
out of sync.
"To workaround this system limitation, developers should either:

� allocate offscreen windows after changing the depth, or

� use WinCreateBitmapWindow so that it uses a bitmap with a defined color
table.

"The latter workaround causes the system to perform color matching when
blitting, so the first workaround may be preferred."

I am not sure, to be honest, if this is describing my problem, and if it is,
what exactly I should do differently?

Any help or advice would be appreciated.

Thanks,

Geoff Thompson



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to