Restoring video mode?

Is there an easy way to restore the resolution and color depth of my screen
again after my application has terminated? It is currently running at 8bpp
’cause that is faster than running at higher color depths, right? But when I
exit the application, sometimes (only sometimes) the desktop has shrunken (
I’m not a native English speaker so I don’t know if this is correct ) into a
square the size of my resolution, and the color depth is still 8 bits. The
program calls SDL_Quit before terminating. My OS is Win2000. thanks_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it’s FREE!
http://messenger.msn.com/

Erik peldan wrote:

Is there an easy way to restore the resolution and color depth of my
screen again after my application has terminated? It is currently
running at 8bpp 'cause that is faster than running at higher color
depths, right? But when I exit the application, sometimes (only
sometimes) the desktop has shrunken ( I’m not a native English speaker
so I don’t know if this is correct ) into a square the size of my
resolution, and the color depth is still 8 bits. The program calls
SDL_Quit before terminating. My OS is Win2000. thanks

This happens when your program crashes on exit. In this case, SDL isn’t
able to do the video mode cleanup.
Try to run your program through a memory checker, intersting things
might show up.

Stephane