Direct Draw 7 - Display mode enumeration

Ok i've downloaded the DirectX7 SDK and started learning DDraw7 but i've run into a small problem...

I'm trying to write a test program that will tell me if a chosen display mode is supported by the default graphics adapter.

In the SDK help files it says you can check for a single display mode being supported or get a list of all the display modes that are supported but from the help file and the example code i've not been able to work out how to check if a single display mode is supported.

Can someone please give me some code that will check if 640*480*16 is supported by the default adapter so that i can learn how to do this and also when i need to, create functions to do full hardware enumerations.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!