From d6fbc23b60f1a16d0da9bff33e2c367c5e27db22 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Wed, 29 Mar 2017 17:46:25 +0200 Subject: [PATCH] Fix cursor in frame preview. --- src/emucore/tia/TIA.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/emucore/tia/TIA.cxx b/src/emucore/tia/TIA.cxx index 837596e93..18ecb4eed 100644 --- a/src/emucore/tia/TIA.cxx +++ b/src/emucore/tia/TIA.cxx @@ -759,7 +759,9 @@ void TIA::enableColorLoss(bool enabled) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bool TIA::electronBeamPos(uInt32& x, uInt32& y) const { - x = clocksThisLine(); + uInt8 clocks = clocksThisLine(); + + x = clocks < 68 ? 0 : clocks - 68; y = myFrameManager.getY(); return isRendering();