Jump to content
  • Advertisement
Sign in to follow this  
L. Spiro

From Full-Screen to Windowed

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

Going from full-screen to windowed (Windows®) works, but the monitor resolution is not changed back to what it originally was (until the game closes).

What is the fix for this?


Thank you,
Yogurt Emperor

Share this post


Link to post
Share on other sites
Advertisement
How do you change the resolution in the first place?
You should use the same method to change it back. For example, you can look at the first NeHe tutorial, which changes resolution with the ChangeDisplaySettings function, and uses ChangeDisplaySettings(NULL,0) to change it back to the default value.

Share this post


Link to post
Share on other sites
Yep that fixed it thank you.
I missed that tidbit because it was in the shut-down code and I assumed it should only be called then and did not investigate further.


Everything is perfect now and no resource leaks!


Thank you.
L. Spiro

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!