Detecting screen color depth
| Fri, 2004-11-05 20:19 | |
|
I have the same program running on the Series60 devices, unfortunately some of them are 12 and other are 16 bits color, since checking the decive ID is not always reliable, I wonder if there is a way to know the color screen depth of a Symbian device.
Thanks in advance. Cheers, Lev |
|






Forum posts: 205
look for CurrentScreenMode and DisplayMode in CWsScreenDevice also you can check GetDefModeMaxNumColors in RWsSession.
take care
Best regards,
Michal Laskowski
Forum posts: 1964
* Get the current display mode of the device
* @return TDisplayMode (EColor16M, EColor64K or EColor4K)
*/
EXPORT_C TDisplayMode CMenuSkin::DisplayMode()
{
TDisplayMode res=EColor4K;
TInt colors=4096;
HAL::Get(HALData::EDisplayColors,colors);
if(colors>1<<16)
res=EColor16M;
else if(colors>1<<12)
res=EColor64K;
return(res);
}
Eric
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 37
for by default it is EColor64K on those S60 v2.x based devices,
such as 6600,7610,etc.
thx
BR,
ouseka
ouseka
Forum posts: 1964
AFAIK this is not feasible on current devices. Only a single native display mode is supported.
Cheers,
Eric
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 9
I wondered, is it possible to, in some similar fashion, find out about the phone's screen refresh rate?
Because I have a flickering problem using direct screen access and figured I could solve it by slowing down my application exactly to the display's refresh rate...
Thanks in advance!