Skip to main content
gamedev.net
🔒 Locked

EnumDisplaySettings problem

Started by emmai Jan 5, 2005 at 7:58 PM 1 replies 800+ views
Original Post
emmai
emmai
I'm now using EnumDisplaySettings to enum the display modes but it seems enumerate out all modes even the card can't support! how can I get the modes that ONLY the card can support? I'd try to use CDS_TEST to test the modes,but it always return DISP_CHANGE_SUCCESSFUL help me,best regards
NumberXaero
NumberXaero
How do you know the modes that its returning are not supported?
The modes returned should be modes supported by your card dispite some looking unusual or maybe new to you. Call it in a loop incrementing the mode param by 1 each iteration, starting with 0. Saving the modes each time till the function fails ending the loop, this way you can get all the modes.
blizzard999
blizzard999
EnumDisplaySettings() should reports ONLY the modes supported by your video card...test the mode before use it is a good practice but it is likely you can do it.
So the fact you get always DISP_CHANGE_SUCCESSFUL is not a surprise!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.