Jump to content
  • Advertisement
Sign in to follow this  
MrRage

SDL Full Screen problems - Win32

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

I’ve tried two tutorials so far and both had problems when I hit F1 for fullscreen. It could be how I started my project (blank windows project / instead of a console project) but I configured the project so that it dose work w/o compile errors. Except now full screen doesn’t work and SDL_GetError() isn’t reporting anything wrong.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
How do you switch between windowed/fullscreen mode? SDL_WM_ToggleFullScreen doesn't work on windows.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by Anonymous Poster
How do you switch between windowed/fullscreen mode? SDL_WM_ToggleFullScreen doesn't work on windows.


sigh... I like all the functionality SDL has but its hard to belive that a simple thing like this isn't suported yet.

so dose it support fullscreen windows in windows?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
From www.libsdl.org / FAQ
Quote:

Q: Why doesn't SDL_WM_ToggleFullScreen() work on Windows?
A: The semantics of SDL_WM_ToggleFullScreen() are that switching between fullscreen and windowed mode is transprent to the application. The display pixels pointer does not change, the display depth does not change, etc. This cannot be guaranteed on Windows. However, there is a simple method you can use to change between fullscreen and windowed mode:
flags ^= SDL_FULLSCREEN;
screen = SDL_SetVideoMode(..., flags);


alright so that should work

Share this post


Link to post
Share on other sites
destroy all of your surfaces (except for the display surface), call SDL_SetVideoMode with the new settings, then recreate all of your other surfaces.

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.

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!