mirror of https://github.com/stella-emu/stella.git
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:
parent
f06a984030
commit
2d7cbb0e0b
|
@ -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: 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>
|
#include <assert.h>
|
||||||
|
@ -250,19 +250,19 @@ Console& Console::operator = (const Console&)
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
void Console::toggleFormat()
|
void Console::toggleFormat()
|
||||||
{
|
{
|
||||||
mySystem->reset();
|
|
||||||
|
|
||||||
string format = myProperties.get("Display.Format");
|
string format = myProperties.get("Display.Format");
|
||||||
|
|
||||||
if(format == "NTSC")
|
if(format == "NTSC")
|
||||||
{
|
{
|
||||||
myFrameBuffer.showMessage("PAL Mode");
|
|
||||||
myProperties.set("Display.Format", "PAL");
|
myProperties.set("Display.Format", "PAL");
|
||||||
|
mySystem->reset();
|
||||||
|
myFrameBuffer.showMessage("PAL Mode");
|
||||||
}
|
}
|
||||||
else if(format == "PAL")
|
else if(format == "PAL")
|
||||||
{
|
{
|
||||||
myFrameBuffer.showMessage("NTSC Mode");
|
|
||||||
myProperties.set("Display.Format", "NTSC");
|
myProperties.set("Display.Format", "NTSC");
|
||||||
|
mySystem->reset();
|
||||||
|
myFrameBuffer.showMessage("NTSC Mode");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue