SDL not returning to proper resolution

I have an application that sets the video mode to fullscreen but with a
different resolution. When I exit the program the resolution does not
return to what it was before running the application. I only have
experienced this on my Linux box running Gnome. In Windows the same
application exits and the resolution returns properly. What gives?

I have an application that sets the video mode to fullscreen but with a
different resolution. When I exit the program the resolution does not
return to what it was before running the application. I only have
experienced this on my Linux box running Gnome. In Windows the same
application exits and the resolution returns properly. What gives?

Are you calling SDL_Quit() before you exit the program?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Are you sure you’re closing SDL down properly?
If your application crashing and not cleaning up properly?

Do any other SDL based games exhibit this problem?

I had this problem in Kylix until I sorted out my exception handling. Works
fine now.

I’ve found that Windows GDI is a little more tolerant than X-Windows when it
comes to applications misbehaving. But Linux is much better at handling the
crashes :slight_smile:

Try [CTRL][ALT][+] to get your screen size back. Or if all else fails
[CTRL][ALT][BKSPC] to kill X

Hope this helps

Later

Jason> I have an application that sets the video mode to fullscreen but with a

different resolution. When I exit the program the resolution does not
return to what it was before running the application. I only have
experienced this on my Linux box running Gnome. In Windows the same
application exits and the resolution returns properly. What gives?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Bad binaries on the Linux box was the culprit. Issue corrected. Thanks.

Jason Farmer wrote:> Are you sure you’re closing SDL down properly?

If your application crashing and not cleaning up properly?

Do any other SDL based games exhibit this problem?

I had this problem in Kylix until I sorted out my exception handling. Works
fine now.

I’ve found that Windows GDI is a little more tolerant than X-Windows when it
comes to applications misbehaving. But Linux is much better at handling the
crashes :slight_smile:

Try [CTRL][ALT][+] to get your screen size back. Or if all else fails
[CTRL][ALT][BKSPC] to kill X

Hope this helps

Later

Jason

I have an application that sets the video mode to fullscreen but with a
different resolution. When I exit the program the resolution does not
return to what it was before running the application. I only have
experienced this on my Linux box running Gnome. In Windows the same
application exits and the resolution returns properly. What gives?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl