mirror of https://github.com/stella-emu/stella.git
Improve NUSIZ during player draw counter decode.
This commit is contained in:
parent
14ebb9772a
commit
602b7b9d0d
|
@ -88,8 +88,12 @@ void Player::nusiz(uInt8 value)
|
|||
|
||||
// NUSIZ during decode seems to affect the decoding logic. The rods in Meltdown
|
||||
// are highly sensitive to this effect, and this seems to model it adequately.
|
||||
if (myIsRendering && myRenderCounter < 0 && myWidth > 8 && oldWidth == 8)
|
||||
if (myIsRendering && myRenderCounter < 0) {
|
||||
if (myWidth > 8 && oldWidth == 8)
|
||||
myRenderCounter += (myRenderCounter < -2 ? -1 : 1);
|
||||
else if (myWidth == 8 && oldWidth > 8 && myRenderCounter < -3)
|
||||
myRenderCounter++;
|
||||
}
|
||||
|
||||
if (oldWidth != myWidth) updatePattern();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue