Sign in to follow this  

A new resolution for full-screen

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

When I set a different resolution for the backbuffer at the initialization of a d3d9 device, I get a runtime error. What is the right procedure to set your own display resolution for the full-screen.

Share this post


Link to post
Share on other sites
If you're talking about starting your application into fullscreen with some resolution, the only actual process that needs to be done is to specify windowed = false in the PresentationParameters, and specify valid height and width.

A valid height and width would be anything the monitor and adapter support. You can enumerate the device to get a list of supported resolutions, or you can just look in the display properties under windows to see which your adapter and monitor support.

Specifying invalid height and width values would likely cause a runtime error.

Hope this helps.

Share this post


Link to post
Share on other sites

This topic is 4107 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.

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