manual color-loss toggling fixed

This commit is contained in:
thrust26 2017-11-23 10:46:22 +01:00
parent cddf4f2f2a
commit 72710aa323
1 changed files with 2 additions and 2 deletions

View File

@ -360,10 +360,10 @@ void Console::toggleFormat(int direction)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Console::toggleColorLoss()
{
bool devSettings = myOSystem.settings().getBool("dev.settings");
bool colorloss = !(devSettings && myOSystem.settings().getBool("dev.colorloss"));
bool colorloss = !myOSystem.settings().getBool("dev.colorloss");
if(myTIA->enableColorLoss(colorloss))
{
myOSystem.settings().setValue("dev.colorloss", colorloss);
string message = string("PAL color-loss ") +
(colorloss ? "enabled" : "disabled");
myOSystem.frameBuffer().showMessage(message);