mirror of https://github.com/stella-emu/stella.git
Fixed bug where screen wasn't being cleared after changing emulation modes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1158 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
b7e6bed91b
commit
c833852131
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//
|
//
|
||||||
// $Id: FrameBuffer.cxx,v 1.98 2006-11-25 01:34:35 stephena Exp $
|
// $Id: FrameBuffer.cxx,v 1.99 2006-11-27 21:02:45 stephena Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
@ -74,7 +74,6 @@ void FrameBuffer::initialize(const string& title, uInt32 width, uInt32 height,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setWindowIcon();
|
setWindowIcon();
|
||||||
cls();
|
|
||||||
|
|
||||||
// Query the desktop size
|
// Query the desktop size
|
||||||
// This is really the job of SDL
|
// This is really the job of SDL
|
||||||
|
@ -103,6 +102,9 @@ void FrameBuffer::initialize(const string& title, uInt32 width, uInt32 height,
|
||||||
setScaler(scaler);
|
setScaler(scaler);
|
||||||
initSubsystem();
|
initSubsystem();
|
||||||
|
|
||||||
|
// Erase old contents
|
||||||
|
cls();
|
||||||
|
|
||||||
// And refresh the display
|
// And refresh the display
|
||||||
myOSystem->eventHandler().refreshDisplay();
|
myOSystem->eventHandler().refreshDisplay();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue