How to detect if a palm Screen is color or monocrome?

2003-03-19 Thread Alexandre Barreto


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?

thnx



_
MSN Messenger: converse com os seus amigos online.  
http://messenger.msn.com.br

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


Re: How to detect if a palm Screen is color or monocrome?

2003-03-19 Thread Markus Dresch
> 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/


Re: How to detect if a palm Screen is color or monocrome?

2003-03-19 Thread krishna kumar
hi,

FtrGet(sysFtrCreator,sysFtrNumDisplayDepth,&displayversion);

where displayversion is an user defined unsigned
integer variable.

if(displayversion != 1)
   colored;
else
   monochrome;

I hope this will help you

Thanks,
krish



--- Alexandre Barreto <[EMAIL PROTECTED]>
wrote:
> 
> 
> 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?
> 
> 
> thnx
> 
> 
> 
>
_
> MSN Messenger: converse com os seus amigos online.  
> http://messenger.msn.com.br
> 
> 
> -- 
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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


Re: How to detect if a palm Screen is color or monocrome?

2003-03-20 Thread Aaron Ardiri
> FtrGet(sysFtrCreator,sysFtrNumDisplayDepth,&displayversion);
> where displayversion is an user defined unsigned
> integer variable.
> if(displayversion != 1)
>colored;
> else
>monochrome;
> 
> I hope this will help you

why not just use WinScreenMode() and request the available
depths? some launchers may put the device in grayscale mode
and the above code wont work.

---
Aaron Ardiri   [EMAIL PROTECTED]
CEO - CTO  +46 70 656 1143
Mobile Wizardry http://www.mobilewizardry.com/

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