mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-05 08:26:28 +00:00
Minor tweak: don't start counting phase from zero.
This should ensure no first pixel issues resulting from clamping.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user