Fix line doubling in interlaced mode.

This commit is contained in:
Brandon Wright 2018-06-01 11:20:31 -05:00
parent 36e7748320
commit 382db4d9d4
2 changed files with 3 additions and 2 deletions

View File

@ -49,6 +49,7 @@ Snes9x 1.56
Football.
- Attached APU instruction tracer and made some additions (BearOso)
to debugging output.
- Fix line doubling in interlaced mode. (kps501)
- Win32: Added dynamic rate control support for XAudio2 (OV2)
- Win32: Added different volume level configuration for (OV2)
regular and turbo speed.

View File

@ -729,8 +729,8 @@ void S9xUpdateScreen (void)
GFX.PPL = GFX.RealPPL << 1;
GFX.DoInterlace = 2;
for (register int32 y = (int32) GFX.StartY - 1; y >= 0; y--)
memmove(GFX.Screen + y * GFX.PPL, GFX.Screen + y * GFX.RealPPL, IPPU.RenderedScreenWidth * sizeof(uint16));
for (register int32 y = (int32) GFX.StartY - 2; y >= 0; y--)
memmove(GFX.Screen + (y + 1) * GFX.PPL, GFX.Screen + y * GFX.RealPPL, GFX.PPL * sizeof(uint16));
}
}