Hi,

I'm having this message when trying to set the videomode in 4 bit depth
on the POSE (rom : OS 3.5 EZ dbg Device: Palm V).

Here the code snippet:

void setVideoModeToGrayScale()
{
    Err error;
    UInt32 width = 0;
    UInt32 height = 0;
    UInt32 depth = 0;
    Boolean enableColor = false;

    error = WinScreenMode(winScreenModeGetDefaults, &width, &height,
&depth,&enableColor);
    if ((error != sysErrParamErr) || (error != memErrNotEnoughSpace))
    {
       error = WinScreenMode(winScreenModeGetSupportedDepths, &width,
&height,&depth, &enableColor);
       // depth has been set to 11

         if ((error != sysErrParamErr) || (error !=
memErrNotEnoughSpace))
        {
             if (depth == 3)
                depth = 2;
            else if (depth == 11 ) //<------ goes here : 16 shades of
gray
                depth = 4;
            else
                depth = 1;

            // ******* The next line is causing the ** ERROR **
            error = WinScreenMode(winScreenModeSet, &width, &height,
&depth,&enableColor);
          }
     }
}




-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to