From 41ec98c6c1a08cf2cf8f7faf7e65a3f59a0b36a7 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Wed, 22 Feb 2017 01:27:16 +0100 Subject: [PATCH] Fix small RSYNC regression. --- src/emucore/tia/TIA.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/emucore/tia/TIA.cxx b/src/emucore/tia/TIA.cxx index adcfca8d7..e7a64934e 100644 --- a/src/emucore/tia/TIA.cxx +++ b/src/emucore/tia/TIA.cxx @@ -945,14 +945,13 @@ void TIA::applyRsync() { const uInt32 x = myHctr > 68 ? myHctr - 68 : 0; - if (myFrameManager.isRendering()) { - myXDelta = 157 - x; + myXDelta = 157 - x; + if (myFrameManager.isRendering()) memset(myCurrentFrameBuffer.get() + myFrameManager.getY() * 160 + x, 0, 160 - x); - } myLinesSinceChange = 0; myHctr = 225; - myHstate = HState::frame; + //myHstate = HState::frame; } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -