Hi,
I want to display a 2-bit (preferrably an 4-bit) bitmap on my about form.
The bitmap as been defined in Constructor and a bitmap has been added to the
form's definition. I'm using the following code to change screen mode
before/after displaying the form.
static void DisplayAboutForm()
{
UInt32 width, height, depth, supported;
Boolean color;
WinScreenMode(winScreenModeGet, &width, &height, &depth, &color);
WinScreenMode(winScreenModeGetSupportedDepths, &width, &height,
&supported, &color);
if ((depth < 2) and (supported & 2 != 0))
{
UInt32 newDepth = 2;
WinScreenMode(winScreenModeSet, &width, &height, &newDepth, &color);
WinScreenMode(winScreenModeGet, &width, &height, &newDepth, &color);
}
FrmDoDialog(AboutForm);
if ((depth < 2) and (supported & 2 != 0))
{
WinScreenMode(winScreenModeSet, &width, &height, &depth, &color);
}
}
Get returns a depth of 1 and get supported returns a depth capability of
0xb. After attempting to set the depth, get returns a depth of 2 indicating
to me that the depth has indeed changes. But this seems to be all in vain
because POSE and my Palm IIIxe display the bitmap in b/w.
Can anyone see were I'm going wrong?
Cheers,
James.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/