diff --git a/src/emucore/tia/frame-manager/JitterEmulation.cxx b/src/emucore/tia/frame-manager/JitterEmulation.cxx index db6c48372..3026863ff 100644 --- a/src/emucore/tia/frame-manager/JitterEmulation.cxx +++ b/src/emucore/tia/frame-manager/JitterEmulation.cxx @@ -65,7 +65,7 @@ void JitterEmulation::updateJitter(Int32 scanlineDifference) { if (uInt32(abs(scanlineDifference)) < Metrics::minDeltaForJitter) return; - Int32 jitter = std::min(jitter, Metrics::maxJitter); + Int32 jitter = std::min(scanlineDifference, Metrics::maxJitter); jitter = std::max(jitter, -myYStart); if (jitter > 0) jitter += myJitterFactor;