fix that bug where NSMB's backgrounds lagged one frame behind

This commit is contained in:
StapleButter
2017-03-21 02:11:49 +01:00
parent 08a634371a
commit cc86aa57ae
3 changed files with 13 additions and 2 deletions

View File

@ -692,6 +692,12 @@ void StartScanline(u32 line)
// (TODO, eventually: emulate it properly)
NDS::CheckDMAs(0, 0x04);
if (line == 0)
{
GPU2D_A->VBlankEnd();
GPU2D_B->VBlankEnd();
}
// draw
GPU2D_A->DrawScanline(line);
GPU2D_B->DrawScanline(line);