diff --git a/stella/src/emucore/Console.cxx b/stella/src/emucore/Console.cxx index 57481895e..e2283f520 100644 --- a/stella/src/emucore/Console.cxx +++ b/stella/src/emucore/Console.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: Console.cxx,v 1.145 2008-05-21 14:01:29 stephena Exp $ +// $Id: Console.cxx,v 1.146 2008-05-21 21:01:40 stephena Exp $ //============================================================================ #include @@ -450,6 +450,9 @@ void Console::initializeVideo(bool full) myOSystem->frameBuffer().initialize(title, myMediaSource->width() << 1, myMediaSource->height()); + + myOSystem->frameBuffer().showFrameStats( + myOSystem->settings().getBool("stats")); } bool enable = myProperties.get(Display_Phosphor) == "YES"; diff --git a/stella/src/emucore/FrameBuffer.cxx b/stella/src/emucore/FrameBuffer.cxx index b9f60c710..de8e659c0 100644 --- a/stella/src/emucore/FrameBuffer.cxx +++ b/stella/src/emucore/FrameBuffer.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: FrameBuffer.cxx,v 1.130 2008-05-21 14:01:29 stephena Exp $ +// $Id: FrameBuffer.cxx,v 1.131 2008-05-21 21:01:40 stephena Exp $ //============================================================================ #include @@ -284,8 +284,7 @@ void FrameBuffer::showFrameStats(bool enable) { myOSystem->settings().setBool("stats", enable); myFrameStatsEnabled = enable; - myOSystem->eventHandler().refreshDisplay(true); // Do this twice for - myOSystem->eventHandler().refreshDisplay(true); // double-buffered modes + myOSystem->eventHandler().refreshDisplay(); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/stella/src/emucore/OSystem.cxx b/stella/src/emucore/OSystem.cxx index da4d27525..47a3bb39a 100644 --- a/stella/src/emucore/OSystem.cxx +++ b/stella/src/emucore/OSystem.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: OSystem.cxx,v 1.129 2008-05-21 16:49:07 stephena Exp $ +// $Id: OSystem.cxx,v 1.130 2008-05-21 21:01:40 stephena Exp $ //============================================================================ #include @@ -321,7 +321,6 @@ bool OSystem::createFrameBuffer(bool showmessage) case EventHandler::S_MENU: case EventHandler::S_CMDMENU: myConsole->initializeVideo(); - myFrameBuffer->showFrameStats(mySettings->getBool("stats")); break; // S_EMULATE, S_PAUSE, S_MENU, S_CMDMENU case EventHandler::S_LAUNCHER: