SDL_WM_ToggleFullscreen() 1.2.14?

Is it possible to get SDL_WM_ToggleFullscreen() working on all platforms
for 1.2.14? I am not sure what the correct method to switch between
windowed and fullscreen modes is…

Can I call SDL_SetVideoMode() a million times and return to the same
SDL_Surface pointer without call SDL_FreeSurface on it, without causing
a memory leak?

Thanks

2009/10/19 Mars999 :

Can I call SDL_SetVideoMode() a million times and return to the same
SDL_Surface pointer without call SDL_FreeSurface on it, without causing a
memory leak?

SDL_SetVideoMode() frees the old display surface itself.