From b66acdf476a1c6c1383a2835aa22b600da79495f Mon Sep 17 00:00:00 2001 From: bladeoner Date: Mon, 18 Feb 2019 16:53:47 +0100 Subject: [PATCH] Backport Move interlace flags to S9xSoftResetPPU. (#811) --- source/snes9x/gfx.cpp | 2 -- source/snes9x/ppu.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/snes9x/gfx.cpp b/source/snes9x/gfx.cpp index f54fb2e..f794502 100644 --- a/source/snes9x/gfx.cpp +++ b/source/snes9x/gfx.cpp @@ -54,8 +54,6 @@ bool8 S9xGraphicsInit (void) S9xSetRenderPixelFormat(RGB565); #endif - GFX.DoInterlace = 0; - GFX.InterlaceFrame = 0; GFX.RealPPL = GFX.Pitch >> 1; IPPU.OBJChanged = TRUE; Settings.BG_Forced = 0; diff --git a/source/snes9x/ppu.cpp b/source/snes9x/ppu.cpp index c2925e4..9d50d01 100644 --- a/source/snes9x/ppu.cpp +++ b/source/snes9x/ppu.cpp @@ -1889,6 +1889,7 @@ void S9xSoftResetPPU (void) memset(IPPU.TileCached[TILE_4BIT_ODD], 0, MAX_4BIT_TILES); PPU.VRAMReadBuffer = 0; // XXX: FIXME: anything better? GFX.InterlaceFrame = 0; + GFX.DoInterlace = 0; IPPU.Interlace = FALSE; IPPU.InterlaceOBJ = FALSE; IPPU.DoubleWidthPixels = FALSE;