> I would like to utilize the max color depth that is available on the > device, but find that when I use WinScreenModeGetSupportedDepths > /WinScreenModeSet to up the depth and then restore it prior to > unloading my form, the form of the currently running app disappears.
You need to WinSaveBits the screen before changing depth, and WinRestoreBits afterwards. But the WinSaveBits may fail due to not enough memory. So in that case you have to post a frmUpdateEvent instead of calling WinRestoreBits. > One suggestion I got was to also save and restore the palette, but > doesn't the OS do this automatically with the default pallettes for > each depth? The OS has a default palette, and makes it the effective palette when you change depth. That's why you need to save/restore the palette. The app you're popping up on top of may be using a custom palette. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
