• Advertisement

Archived

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

How to change resolution in game

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

Hey, I am using Directx 7 for both 2D and 3D and I was wondering how I can change the resolution durning the game. Thanks for any help. Possibility

Share this post


Link to post
Share on other sites
Advertisement
I think you can just close the primary surface, call SetDisplayMode, recreate the primary surface and reload all surfaces.

-Jussi

Share this post


Link to post
Share on other sites
You basically release your backbuffer and primary surface, call SetDisplayMode, then recreate your primary surface exactly as before, attach the clipper etc.

------------------------------
#pragma twice


sharewaregames.20m.com

Share this post


Link to post
Share on other sites

  • Advertisement