overclocking: make vblank oc respect 7bit checkbox.

This commit is contained in:
feos-tas 2016-07-02 09:51:33 +00:00
parent 3ad28715f7
commit 44f5e37815
1 changed files with 5 additions and 3 deletions

View File

@ -1752,9 +1752,11 @@ int FCEUPPU_Loop(int skip) {
}
X6502_Run((scanlines_per_frame - 242) * (256 + 85) - 12);
if (overclock_enabled && vblankscanlines) {
overclocking = 1;
X6502_Run(vblankscanlines * (256 + 85) - 12);
overclocking = 0;
if (!DMC_7bit || !skip_7bit_overclocking) {
overclocking = 1;
X6502_Run(vblankscanlines * (256 + 85) - 12);
overclocking = 0;
}
}
PPU_status &= 0x1f;
X6502_Run(256);