Detecting screen color depth

Login to reply to this topic.
Fri, 2004-11-05 20:19
Joined: 2003-11-10
Forum posts: 4
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

Fri, 2004-11-05 21:05
Joined: 2004-06-06
Forum posts: 205
Detecting screen color depth
hi,
look for CurrentScreenMode and DisplayMode in CWsScreenDevice also you can check GetDefModeMaxNumColors in RWsSession.
take care

Best regards,
Michal Laskowski

Sat, 2004-11-06 11:04
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 1964
Detecting screen color depth
Here is the code I use for such purpose:
Code:
/**
* 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

Sun, 2004-11-07 12:47
Joined: 2003-04-01
Forum posts: 37
Detecting screen color depth
Who knows how to change the DisplayMode into EColor4K?
for by default it is EColor64K on those S60 v2.x based devices,
such as 6600,7610,etc.
thx  Cheezy

BR,
ouseka

ouseka

Mon, 2004-11-08 09:12
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 1964
Detecting screen color depth
Hi Ouseka,

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

Sat, 2005-04-16 19:29
Joined: 2005-01-07
Forum posts: 9
Detecting screen color depth
Hello,

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!
  • Login to reply to this topic.