I've got most of my app up and running in 8-bit color.
I've started to convert it to 4-bit grayscale.
It compiles fine, but when I run it on the emulator with
devices that should have a 4-bit display, I get a 1-bit
output.
Any ideas?
I'm using the code below to try to force it into the correct mode.
(widthP, etc are globals.)
UInt32 tmpdepthP;
Boolean tmpenableColorP;
WinScreenMode(winScreenModeGetSupportedDepths,NULL,NULL,&tmpdepthP,NULL);
WinScreenMode(winScreenModeGet,&widthP,&heightP,&depthP,&enableColorP);
if(tmpdepthP>=128) //color
{
tmpdepthP=8;
tmpenableColorP=true;
WinScreenMode(winScreenModeSet,NULL,NULL,&tmpdepthP,&tmpenableColorP);
}
else //16 shade gray
{
tmpdepthP=4;
WinScreenMode(winScreenModeSet,NULL,NULL,&tmpdepthP,NULL);
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/