Sign in to follow this  
lindon jason heaven

test desk top 32 or 16 bit

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
S1CA    1418
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this