diff --git a/src/emucore/tia/frame-manager/JitterEmulation.cxx b/src/emucore/tia/frame-manager/JitterEmulation.cxx index b31a20852..f6d2020f2 100644 --- a/src/emucore/tia/frame-manager/JitterEmulation.cxx +++ b/src/emucore/tia/frame-manager/JitterEmulation.cxx @@ -84,7 +84,7 @@ void JitterEmulation::frameComplete(Int32 scanlineCount, Int32 vsyncCycles) { const Int32 scanlineDifference = scanlineCount - myLastFrameScanlines; - if(abs(scanlineDifference) < myScanlineDelta + if(abs(scanlineDifference) >= myScanlineDelta && abs(myJitter) < static_cast(myRandom.next() % myJitterLines)) { // Repeated invalid frames cause randomly repeated jitter