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

@ -426,12 +426,16 @@ void GPU2D::DrawScanline(u32 line)
void GPU2D::VBlank()
{
CaptureCnt &= ~(1<<31);
}
void GPU2D::VBlankEnd()
{
// TODO: find out the exact time this happens
BGXRefInternal[0] = BGXRef[0];
BGXRefInternal[1] = BGXRef[1];
BGYRefInternal[0] = BGYRef[0];
BGYRefInternal[1] = BGYRef[1];
CaptureCnt &= ~(1<<31);
}