Move interlace flags to S9xSoftResetPPU.

Windows is calling S9xGraphicsInit on BPP changes, and this
could reset the interlace interval.
This commit is contained in:
Brandon Wright 2019-02-17 15:57:23 -06:00
parent c90de1077b
commit f2b5f26a35
2 changed files with 1 additions and 2 deletions

View File

@ -53,8 +53,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;

View File

@ -1888,6 +1888,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;