- NULLed screen in CreateFrameBuffer if it's the same as 'old' and gets deleted.

SVN r871 (trunk)
This commit is contained in:
Christoph Oelckers 2008-03-30 09:30:34 +00:00
parent 5e6f709dbf
commit 298e465e22
2 changed files with 3 additions and 0 deletions

View file

@ -222,6 +222,8 @@ DFrameBuffer *SDLVideo::CreateFrameBuffer (int width, int height, bool fullscree
return old;
}
old->GetFlash (flashColor, flashAmount);
old->ObjectFlags |= OF_YesReallyDelete;
if (screen == old) screen = NULL;
delete old;
}
else

View file

@ -505,6 +505,7 @@ DFrameBuffer *Win32Video::CreateFrameBuffer (int width, int height, bool fullscr
}
old->GetFlash (flashColor, flashAmount);
old->ObjectFlags |= OF_YesReallyDelete;
if (old == screen) screen = NULL;
delete old;
}
else