OpenGL: add support for changing BG0HOFS midframe. fixes #2072

This commit is contained in:
Arisotura
2024-06-18 13:11:42 +02:00
parent 626d2379bc
commit e234385c20
4 changed files with 9 additions and 11 deletions

View File

@ -254,7 +254,11 @@ void SoftRenderer::DrawScanline(u32 line, Unit* unit)
if (GPU.GPU3D.IsRendererAccelerated())
{
dst[256*3] = masterBrightness | (CurUnit->DispCnt & 0x30000);
u32 xpos = GPU.GPU3D.GetRenderXPos();
dst[256*3] = masterBrightness |
(CurUnit->DispCnt & 0x30000) |
(xpos << 24) | ((xpos & 0x100) << 15);
return;
}