Jump to content
  • Advertisement
Sign in to follow this  
emforce

fullscreen

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

Advertisement
directx 10 sorry

I know that the IDXGISwapChain catches the alt enter combo to go fullscreen but i want to change it so that it is another button.

Share this post


Link to post
Share on other sites
i still haven't figured it out

right now i have the DXGI_SWAP_CHAIN_DESC function in my code and that decides whether the application is fullscreen or not but i was wondering how i could make it so that sd.Windowed equals a bool value?

if i can get it to equal a bool value then it will just be a case of inputing a certain key to toggle it on and off :D

Share this post


Link to post
Share on other sites
Call SetFullscreenState to switch to fullscreen. Call GetFullscreenState to check if you're in fullscreen.
DXGI_SWAP_CHAIN_DESC.Windowed is a BOOL value, it is only used when you create your swap chain, not when you change between fullscreen and not fullscreen on an already existing swap chain. You should always create your swap chain with Windowed set to TRUE, and then change to fullscreen with SetFullscreenState, as stated in the remarks in the documentation for IDXGIFactory::CreateSwapChain.

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!