[SDL] Toggling full screen in runtime
J anderson
anderson at badmama.com.au.REMOVE
Tue May 11 10:16:39 PDT 2004
I previously posted code to do this ("[SDL] Windows resize (openGL)"), which
works to some extent, but doesn't like the fullscreen->windows conversion
(windows->fullscreen works). You may find that useful as a starting peace.
I don't know if your using openGL, but the SDL code should be pretty much
the same.
A apparently you need to wait for something to be correct/occur, but what?
I haven't gotten a reply yet...
"Gabriel Gambetta" <ggambett at artech.com.uy> wrote in message
news:mailman.1057163230.17316.sdl at libsdl.org...
The SDL documentation states that SDL_WM_ToggleFullScreen is not
supported under Win32, and effectively, it doesn't work.
Somebody just told me that calling SDL_SetVideoMode again with the
SDL_FULLSCREEN correctly on or off would do the trick. I haven't tested
it yet, but assuming it works, is it safe to use it? If it is, why
doesn't SDL_WM_ToggleFullScreen() call SDL_SetVideoMode()?
Thanks,
--Gabriel
Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy
More information about the SDL
mailing list