Fixed the switching of NTSC/PAL mode and the associated onscreen

messages.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@339 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2004-08-12 23:54:36 +00:00
parent f06a984030
commit 2d7cbb0e0b
1 changed files with 5 additions and 5 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.37 2004-08-12 23:36:15 stephena Exp $
// $Id: Console.cxx,v 1.38 2004-08-12 23:54:36 stephena Exp $
//============================================================================
#include <assert.h>
@ -250,19 +250,19 @@ Console& Console::operator = (const Console&)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Console::toggleFormat()
{
mySystem->reset();
string format = myProperties.get("Display.Format");
if(format == "NTSC")
{
myFrameBuffer.showMessage("PAL Mode");
myProperties.set("Display.Format", "PAL");
mySystem->reset();
myFrameBuffer.showMessage("PAL Mode");
}
else if(format == "PAL")
{
myFrameBuffer.showMessage("NTSC Mode");
myProperties.set("Display.Format", "NTSC");
mySystem->reset();
myFrameBuffer.showMessage("NTSC Mode");
}
}