PPU: Fixed recent regression with the "cycle" calculation

This commit is contained in:
Sour 2019-10-19 21:26:52 -04:00
parent f113392bc5
commit c89bc248c3

View file

@ -106,9 +106,9 @@ uint16_t Ppu::GetCycle()
if(hClock <= 1292) {
return hClock >> 2;
} else if(hClock <= 1310) {
return (hClock >> 2) + 1;
return (hClock - 2) >> 2;
} else {
return (hClock >> 2) + 2;
return (hClock - 4) >> 2;
}
}