Fullscreen toggle

I am about to release a xmms visualization plug-in using SDL, but I
still have two problems:

-I have read that to toggle from fullscreen mode to windows mode, the
only thing I have to do is
SDL_SetVIdeoMode(W,H,D,!FLAGS);
I use a 8 bpp display, and when my X is in 8 bpp, it works fine, but
when my X is in 16 bpp, it crashes.

-I would like to know how to close a SDL window without closing the
application.

Thank you for your help.

Julien Carme

Julien Carme wrote:

I am about to release a xmms visualization plug-in using SDL, but I
still have two problems:

-I have read that to toggle from fullscreen mode to windows mode, the
only thing I have to do is
SDL_SetVIdeoMode(W,H,D,!FLAGS);

that !FLAGS thing shouldn’t work. If you didn’t define SDL_OPENGL before
you now would :)–
Daniel Vogel My opinions may have changed,
666 @ http://grafzahl.de but not the fact that I am right