Fix undefined behavior for rsync during hblank.

This commit is contained in:
Christian Speckner 2025-05-29 10:53:42 +02:00
parent 6c815186a6
commit d466022bcd
1 changed files with 1 additions and 1 deletions

View File

@ -1599,7 +1599,7 @@ void TIA::tickHblank()
break;
}
if (myExtendedHblank && myHctr > TIAConstants::H_BLANK_CLOCKS - 1)
if (myExtendedHblank && myHctr - myHctrDelta > TIAConstants::H_BLANK_CLOCKS - 1)
myPlayfield.tick(myHctr - TIAConstants::H_BLANK_CLOCKS - myHctrDelta);
}