Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Daishim

Getting Desktop Color Depth.

This topic is 5421 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know this has been asked before, in fact I''m almost positive that it''s been asked many times... but every time I try to search for something the script keeps erroring out on me. So... I guess I''ll have to be another statistic. Is there a Win32 function for obtaining the color depth of the desktop? I''ve got the resolution via GetSystemMetrics(), but I can''t find anything that would pull the color depth. Thanks.

I know only that which I know, but I do not know what I know.

Share this post


Link to post
Share on other sites
Advertisement
Call EnumDisplaySettings with the ENUM_CURRENT_SETTINGS or ENUM_REGISTRY_SETTINGS flag to get the resolution, bitdepth, display frequency, and a whole load of other info.

Share this post


Link to post
Share on other sites
Wow, that is exactly what I''m looking for.

Thanks.



I know only that which I know, but I do not know what I know.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!