fix for the crash in Sky when switching scalers

svn-id: r8067
This commit is contained in:
Max Horn 2003-05-28 22:19:11 +00:00
parent 2aaa13438a
commit 73c7e78f88

View File

@ -204,6 +204,8 @@ void OSystem_SDL::hotswap_gfx_mode() {
if (!_screen)
return;
StackLock lock(_mutex); // Lock the mutex until this function ends
// Keep around the old _screen & _tmpscreen so we can restore the screen data
// after the mode switch.
SDL_Surface *old_screen = _screen;