Fix for startup sound issues when using 'framestats' mode.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1529 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2008-05-21 21:01:40 +00:00
parent 63a3946830
commit 832fab1ee8
3 changed files with 7 additions and 6 deletions

View File

@ -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 <cassert>
@ -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";

View File

@ -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 <sstream>
@ -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();
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -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 <cassert>
@ -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: