This commit is contained in:
thrust26 2018-01-17 19:29:36 +01:00
parent f241dfd7b7
commit a6bea6438f
1 changed files with 3 additions and 4 deletions
src/emucore/tia

View File

@ -812,10 +812,9 @@ void TIA::update()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool TIA::enableColorLoss(bool enabled)
{
if (consoleTiming() != ConsoleTiming::pal)
return false;
bool allowColorLoss = consoleTiming() == ConsoleTiming::pal;
if(enabled)
if(allowColorLoss && enabled)
{
myColorLossEnabled = true;
myColorLossActive = myFrameManager->scanlinesLastFrame() & 0x1;
@ -833,7 +832,7 @@ bool TIA::enableColorLoss(bool enabled)
myBackground.applyColorLoss();
}
return true;
return allowColorLoss;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -