> i need to make a function that detects if there is color or not on the
palm
> is ther eany function that i can get that?
>
> i heard about WinScreenMode .. this can tell me this?

exactly.

here's a little snippet that finds out the supported depths and sets the
screen to the highest depth.

UInt32 depth = 0, depthMask = 0;

WinScreenMode(winScreenModeGetSupportedDepths,NULL,NULL, &depthMask,NULL);

while(depthMask){
    depth = depth + 1;
    depthMask = depthMask >> 1;
}

WinScreenMode(winScreenModeSet,NULL,NULL,&depth,NULL);

markus dresch (www.palmside.com)



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

Reply via email to