Jump to content
  • Advertisement
Sign in to follow this  
jbb

Fullscreen device (DX9)

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

This is directX9. When I render to a window, I make sure that the back buffer width and height are set to the same size as the window's client area and that works well. For fullscreen rendering until now I've been adjusting the window size to match the full screen size and removing the borders etc from the window, and then setting the back buffer's size to match. However by accident I've just found that if I don't bother to resize or alter the window in any way and just set the D3DPRESENT_PARAMETERS back buffer size to be the whole screen, and set the format to something suitable, and set the Windowed field to false then it all seems to work anyway even though the window isn't fullsceeen. Most guides I've read adjust the window parameters when going full screen but it seems to work fine for me without doing any of that. So should I be doing that or not?

Share this post


Link to post
Share on other sites
Advertisement
Indeed the device will resize/reposition the window for you if you don't do it yourself. However I've seen cases where the window gets screwed up upon going back to windowed mode if you don't properly handle it yourself. If you're just doing fullscreen I wouldn't worry about it, but if you want to be able to switch back and forth I would add in the resizing code.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!