mirror of https://github.com/stella-emu/stella.git
fix #279
This commit is contained in:
parent
f241dfd7b7
commit
a6bea6438f
|
@ -812,10 +812,9 @@ void TIA::update()
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
bool TIA::enableColorLoss(bool enabled)
|
bool TIA::enableColorLoss(bool enabled)
|
||||||
{
|
{
|
||||||
if (consoleTiming() != ConsoleTiming::pal)
|
bool allowColorLoss = consoleTiming() == ConsoleTiming::pal;
|
||||||
return false;
|
|
||||||
|
|
||||||
if(enabled)
|
if(allowColorLoss && enabled)
|
||||||
{
|
{
|
||||||
myColorLossEnabled = true;
|
myColorLossEnabled = true;
|
||||||
myColorLossActive = myFrameManager->scanlinesLastFrame() & 0x1;
|
myColorLossActive = myFrameManager->scanlinesLastFrame() & 0x1;
|
||||||
|
@ -833,7 +832,7 @@ bool TIA::enableColorLoss(bool enabled)
|
||||||
myBackground.applyColorLoss();
|
myBackground.applyColorLoss();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return allowColorLoss;
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
Loading…
Reference in New Issue