[SDL] Re-Calling SDL_SetVideoMode to resize window?

Christoph Kobe christoph at kobenetz.de
Fri May 2 01:30:50 PDT 2008


Hi,
if I call SDL_SetVideoMode a 2nd time to resize my window, will this properly
delete the SDL_Surface it created when I called it for the first time?

SDL_Surface *screen;

screen = SDL_SetVideoMode(640, 480, 16, SDL_SWSURFACE);

// Now I want to change the mode for some reason ...
screen = SDL_SetVideoMode(800, 600, 16, SDL_SWSURFACE);

// but what happened to my existing surface? Was is properly deleted?




More information about the SDL mailing list