Jump to content
  • Advertisement


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


Switching to fullscreen in DirectX

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

Hi, I was wondering if anyone knows how to switch to fullscreen mode *while* a game is running? I know you can pass in the "Windowed" parameter from the D3DDISPLAYMODE structure to the CreateDevice() function, but it wouldn''t really make sense to call createDevice in the middle of a game! So does anyone know some function or technique to allow you to toggle between fullscreen and windowed? Thank you, Raj Sharma

Share this post

Link to post
Share on other sites
How do you reset the device, without losing memory everytime you switch back from Alt-Tab or Ctrl-ESC?

If you add the line:
Debug.Print "Memory available: " & D3DDevice.GetAvailableTextureMem(D3DPOOL_DEFAULT)
You can watch your memory being eaten away until there''s nothing left, and then the device can''t even be reset or created anymore!

This phenomenon can be emphasized by using this front & backbuffer format:

This only occurs if the fullscreen mode is the same as the desktop mode. It doesn''t occur if they are different color depths or resolutions.

Any ideas?

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!