From 44f5e37815c33fde709eac776d53a325dd16e3be Mon Sep 17 00:00:00 2001 From: feos-tas Date: Sat, 2 Jul 2016 09:51:33 +0000 Subject: [PATCH] overclocking: make vblank oc respect 7bit checkbox. --- trunk/src/ppu.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/trunk/src/ppu.cpp b/trunk/src/ppu.cpp index 669b38e0..8dbae985 100644 --- a/trunk/src/ppu.cpp +++ b/trunk/src/ppu.cpp @@ -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);