Fullscreen in windows

hi, does anybody know why is switching fullscreen in windows not
working? I’m using SDL_WM_ToggleFullScreen(screen); which is working on
the same machine under GNU/Linux but under winxp not. setting FS in
SDL_DetVideoMode() works fine.
thx
515

hi, does anybody know why is switching fullscreen in windows not
working? I’m using SDL_WM_ToggleFullScreen(screen); which is working on
the same machine under GNU/Linux but under winxp not. setting FS in
SDL_DetVideoMode() works fine.

I’ve added this to the FAQ:
http://www.libsdl.org/faq.php?action=listentries&category=4#79

Q: Why doesn’t SDL_WM_ToggleFullScreen() work on Windows?
flags ^= SDL_FULLSCREEN;
screen = SDL_SetVideoMode(…, flags);

See ya!
-Sam Lantinga, Software Engineer, Blizzard EntertainmentA: 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: