My game can go windowed to fullscreen and back without any trouble. Borders are fine.
However, if I start the application in fullscreen, and then go to windowed mode, all borders are gone! If to try to refresh with going windowed to windowed with the same resolution nothing happens, but if I refresh going from windowed to windowed with another resolution the border pops back!
I think, the intended way for changing the resolution and the window mode is to directly modify the swap chain, instead of letting the window force the changes.
Here is some information on best practices (also ensuring that you get maximum performance in fullscreen mode). In case you haven't seen it yet, here is a DXGI Overview article.
Hope this helps to unravel this weird behavior.
I think, the intended way for changing the resolution and the window mode is to directly modify the swap chain, instead of letting the window force the changes.
Here is some information on best practices (also ensuring that you get maximum performance in fullscreen mode). In case you haven't seen it yet, here is a DXGI Overview article.
Hope this helps to unravel this weird behavior.
Cheers!
That relates to DXGI which is not going to be relevant for the OP, who is clearly using D3D9 (present parameters, etc).
Check the documentation for SetWindowLong: http://msdn.microsoft.com/en-us/library/windows/desktop/ms633591%28v=vs.85%29.aspx
Certain window data is cached, so changes you make using SetWindowLong will not take effect until you call the SetWindowPos function. Specifically, if you change any of the frame styles, you must call SetWindowPos with the SWP_FRAMECHANGED flag for the cache to be updated properly.[/quote]
Direct3D has need of instancing, but we do not. We have plenty of glVertexAttrib calls.