Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Changing Res's while in Dx Fullscreen?

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

Hello all, I''m running a fullscreen dx application which uses a primary and secondary buffer to do page flipping. I''ve initialized directdraw and all my graphics code runs fine, but I want the option of running my game in different resolutions. I''ve tested the other resolutions and they work, but when I change the resolution on the fly i just get a black screen. I''ve tried to ->Restore(); all my surfaces and reload them like when I alt-tab (which i have working), but this doesnt do it. I figure I must need to reinitialize something or re-attach a surface, but I''m just not sure what to do. Any help would be appreciated... I do this: (starting the program in 1024x768x16) LPDIRECTDRAW ddraw; (global) (when a key is pressed i do these steps) modewidth=800; modeheight=600; modedepth=16; ddraw->SetDisplayMode( modewidth, modeheight, modedepth ); //restoreAll(); (this is my surface restoration function which doesnt seem to help) what am i forgetting to do? thanks, ;/ :D http://www.skelman.com Skelman Software

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!