Why doesn't SDL_WM_ToggleFullScreen() work on Windows?

The semantics of SDL_WM_ToggleFullScreen() are that switching between fullscreen and windowed mode is transparent 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);

FAQ_SDL_WM_ToggleFullScreen (last edited 2008-04-17 08:18:11 by localhost)