Reputation: 103
How do I perform a runtime fullscreen/ and window mode swap s
However, there is two problem to it.
2nd)
Upvotes: 1
Views: 1226
Reputation: 8757
No, you needn't to create a new window, just use the old one. basically you can call IDirect3DDevice9::Reset with the new presentation parameters. when entering full-screen mode, you need to do the following things.
Be careful that when your app enter full-screen mode, it will hanging all applications, including the development environment(such as Visual Studio). so you'd better take another monitor to do full-screen debugging.
Upvotes: 2