From db078c73636ebcc305d6496684dad1fd6df218d3 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 27 Feb 2019 18:51:51 -0500 Subject: [PATCH] Minor tweak: don't start counting phase from zero. This should ensure no first pixel issues resulting from clamping. --- Outputs/CRT/CRT.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Outputs/CRT/CRT.cpp b/Outputs/CRT/CRT.cpp index de708e345..ef216bcaf 100644 --- a/Outputs/CRT/CRT.cpp +++ b/Outputs/CRT/CRT.cpp @@ -235,6 +235,7 @@ void CRT::advance_cycles(int number_of_cycles, bool hsync_requested, bool vsync_ // This is unnecessary, strictly speaking, but seeks to help ScanTargets fit as // much as possible into a fixed range. phase_numerator_ %= phase_denominator_; + if(!phase_numerator_) phase_numerator_ += phase_denominator_; } // Announce event.