Jump to content
  • Advertisement

Archived

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

Civilian_E

A problem in choosing color depth

This topic is 6081 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

Hi, I found that when my program run in windowed mode, it will simply follow the Desktop color depth no matter what i set in the PIXELFORMATDESCRIPTOR. Can anyone give me some hints on why this happens? Thx in advance.

Share this post


Link to post
Share on other sites
Advertisement
Yeah... well... if you do not force another display mode with the ChangeDisplayMode() function, then the SetPixelFormat will only be able to use the current resolution (although that is not a problem in windowed OpenGL) and bpp.

Use the ChangeDisplayMode() function to change the bit depth and then try again... you will see that it does work then. One last hint... do not forget to change back into the original mode (pass NULL) before quitting the application or you will have changed the bitdepth for your desktop (which is an annoyance)

Hope this has helped

ICQ: 130925152
Email: e.j.folkertsma@student.utwente.nl

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!