[SDL] [SPAM] Toggling fullscreen at run time.
Rainer Deyke
rainerd at eldwood.com
Wed Aug 22 03:34:51 PDT 2007
Gabriele Greco wrote:
> If your game is 2D you only have to call SDL_SetVideoMode() with or
> without the SDL_FULLSCREEN flag.
Not quite. If you have surfaces with the SDL_HWSURFACE flag, you need
to free those before calling SDL_SetVideoMode (and reload them
afterwards). If your new video mode has a different pixel format than
your old video mode, you should convert your surfaces to the new pixel
format (possibly reloading them first). You don't need to reload any
other resources unless they use SDL_Surfaces internally.
--
Rainer Deyke - rainerd at eldwood.com
More information about the SDL
mailing list