Sign in to follow this  
jbb

Fullscreen device (DX9)

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

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