Does SDL_QuitSubSystem free the active surface?

If I create a new surface, via SDL_SetVideoMode, how can I copy the
contents of the previus surface to the new one?

AFAIK, the only way to undisplay a surface is via “SDL_QuitSubSystem”,
but after it, If I copy the old scren to the new one, I have a
segmentation fault (I lock the dest surface, ofcoz!)

But, If I load a BMP to the new surface, it works without problems…

So, I assume that SDL_QuitSubSystem is freeing the old surface… am I
right?

A possilbe solution is to backup the old screen surface…

Thanks!–
signed
derethor of centolos

So, I assume that SDL_QuitSubSystem is freeing the old surface… am I
right?

Yup.

A possilbe solution is to backup the old screen surface…

Yup.

See ya! (online in Alaska!)

-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Dear oh dearOn Wed, Nov 22, 2000 at 06:31:34PM -0800, Sam Lantinga wrote:

See ya! (online in Alaska!)

Martin

Bother said the Moderator, &$&^%NO CARRIER