• Advertisement
Sign in to follow this  

test desk top 32 or 16 bit

This topic is 4328 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 do i test to see what color depth the desk top is in. i have programed a windowed game in 16 bit color and i want it to test to see if the desktop is in that mode befor it starts. thanks my game so far and code if any one know how to covert to 32 bit please help i seem to keep going round and round and not getting any where. http://lindon-games.mysite.wanadoo-members.co.uk/Balloon.zip ps only level one works so far.

Share this post


Link to post
Share on other sites
Advertisement
Assuming Direct3D 9 (you don't say which API you're using...):

After you call Direct3DCreate9(), but before you call IDirect3D9::CreateDevice(), simply call IDirect3D9::GetAdapterDisplayMode(). This will get you the dimensions and pixel format that the display is currently.


You can also query this using GDI calls alone. Take a look at EnumDisplaySettings() with the ENUM_CURRENT_SETTINGS flag.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement