mirror of https://github.com/mgba-emu/mgba.git
DS Video: Fix regression with affine backgrounds
This commit is contained in:
parent
f85a18737e
commit
a05d97a85c
|
@ -379,10 +379,10 @@ static void DSVideoSoftwareRendererDrawGBAScanline(struct GBAVideoRenderer* rend
|
||||||
memset(softwareRenderer->alphaA, softwareRenderer->blda, sizeof(softwareRenderer->alphaA));
|
memset(softwareRenderer->alphaA, softwareRenderer->blda, sizeof(softwareRenderer->alphaA));
|
||||||
memset(softwareRenderer->alphaB, softwareRenderer->bldb, sizeof(softwareRenderer->alphaB));
|
memset(softwareRenderer->alphaB, softwareRenderer->bldb, sizeof(softwareRenderer->alphaB));
|
||||||
|
|
||||||
softwareRenderer->bg[2].sx = softwareRenderer->bg[2].dmx * y;
|
softwareRenderer->bg[2].sx = softwareRenderer->bg[2].refx + softwareRenderer->bg[2].dmx * y;
|
||||||
softwareRenderer->bg[2].sy = softwareRenderer->bg[2].dmy * y;
|
softwareRenderer->bg[2].sy = softwareRenderer->bg[2].refy + softwareRenderer->bg[2].dmy * y;
|
||||||
softwareRenderer->bg[3].sx = softwareRenderer->bg[3].dmx * y;
|
softwareRenderer->bg[3].sx = softwareRenderer->bg[3].refx + softwareRenderer->bg[3].dmx * y;
|
||||||
softwareRenderer->bg[3].sy = softwareRenderer->bg[3].dmy * y;
|
softwareRenderer->bg[3].sy = softwareRenderer->bg[3].refy + softwareRenderer->bg[3].dmy * y;
|
||||||
|
|
||||||
int w;
|
int w;
|
||||||
unsigned priority;
|
unsigned priority;
|
||||||
|
|
Loading…
Reference in New Issue