From ac14e40bff6499d56f56fff90dc0381e5ed29d8a Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sat, 21 Jan 2017 00:59:29 +0100 Subject: [PATCH] Fix an oversight. --- src/emucore/tia/Player.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/emucore/tia/Player.cxx b/src/emucore/tia/Player.cxx index 581e64322..794cd0898 100644 --- a/src/emucore/tia/Player.cxx +++ b/src/emucore/tia/Player.cxx @@ -86,11 +86,13 @@ void Player::nusiz(uInt8 value) // This is an incomplete description of the effects seen in issues #87 and #82. More investigation // is required for a complete description (#63) - if (myIsRendering && myRenderCounter >= (8 - myWidth - 2) && oldWidth == 8 && myWidth != oldWidth) { + if (myIsRendering && myRenderCounter >= (8 - myWidth - 2) && oldWidth == 8 && myWidth != oldWidth) myEffectiveWidth = 8; - } else { + else myEffectiveWidth = oldWidth; - } + + if (myRenderCounter >= myEffectiveWidth) + myIsRendering = false; // 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.