overclocking: make vblank oc respect the global switch

This commit is contained in:
feos-tas 2016-06-26 09:12:53 +00:00
parent ddfdf735db
commit 836779bbfa
1 changed files with 2 additions and 4 deletions

View File

@ -1225,8 +1225,7 @@ static void Fixit1(void) {
void MMC5_hb(int); //Ugh ugh ugh.
static void DoLine(void) {
if (overclocking)
{
if (overclocking) {
X6502_Run(256 + 69);
scanline++;
X6502_Run(16);
@ -1752,8 +1751,7 @@ int FCEUPPU_Loop(int skip) {
TriggerNMI();
}
X6502_Run((scanlines_per_frame - 242) * (256 + 85) - 12);
if (vblankscanlines)
{
if (overclock_enabled && vblankscanlines) {
overclocking = 1;
X6502_Run(vblankscanlines * (256 + 85) - 12);
overclocking = 0;