Screen resolution not reset when exitting

Hi All :slight_smile:

Not posted on here for a long time… Hope you’re all well! :slight_smile:

Just a little bug… Metal Blob Solid is nearly done and one of the few minor
bugs is that sometimes a player will exit from fullscreen mode (640 x 480)
back to their desktop (presumably something like 1024 x 768) but the screen
resolution is not restored. This isn’t something that happens all the time,
just occasionally.

Are there any steps I could check are being done in order to ensure that the
screen is properly restored? Such as the order in which I do stuff like
SDL_Quit(), etc?

Thanks,

Steve :slight_smile:

This could be because it crashed, or you overwrote some memory, or failed to call SDL_Quit.
use a memory debugger like valgrind to catch more memory problems.

-LIM-

Stephen Sweeney wrote:> Hi All :slight_smile:

Not posted on here for a long time… Hope you’re all well! :slight_smile:

Just a little bug… Metal Blob Solid is nearly done and one of the few minor
bugs is that sometimes a player will exit from fullscreen mode (640 x 480)
back to their desktop (presumably something like 1024 x 768) but the screen
resolution is not restored. This isn’t something that happens all the time,
just occasionally.

Are there any steps I could check are being done in order to ensure that the
screen is properly restored? Such as the order in which I do stuff like
SDL_Quit(), etc?

Thanks,

Steve :slight_smile:


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