Jump to content
  • Advertisement

Archived

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

X-Man

Getting BPP from current Window?

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

How can I get the Bit depth from the current window. I''d like to SetDisplayMode() in DX7 to match, thus allowing the user to configure the game externally via Windows. I can''t seem to find a usable "GetBPP" function in the Win32 API... Thanks...

Share this post


Link to post
Share on other sites
Advertisement
Well, one way to do it would be to use directx for the external window. Set the cooperative level with DDSCL_NORMAL. Then you can get the pixel format of the external window''s primary surface and save that to use for the main program. I''ve looked for a GetBPP() sort of function before but could never find one. Hope this helps...

-> Briar LoDeran <-

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!