From a05d97a85cc95b935f1b0cf22cf1287239b9b9f6 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 13 Apr 2017 10:36:31 -0700 Subject: [PATCH] DS Video: Fix regression with affine backgrounds --- src/ds/renderers/software.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ds/renderers/software.c b/src/ds/renderers/software.c index 14e15527c..845279a06 100644 --- a/src/ds/renderers/software.c +++ b/src/ds/renderers/software.c @@ -379,10 +379,10 @@ static void DSVideoSoftwareRendererDrawGBAScanline(struct GBAVideoRenderer* rend memset(softwareRenderer->alphaA, softwareRenderer->blda, sizeof(softwareRenderer->alphaA)); memset(softwareRenderer->alphaB, softwareRenderer->bldb, sizeof(softwareRenderer->alphaB)); - softwareRenderer->bg[2].sx = softwareRenderer->bg[2].dmx * y; - softwareRenderer->bg[2].sy = softwareRenderer->bg[2].dmy * y; - softwareRenderer->bg[3].sx = softwareRenderer->bg[3].dmx * y; - softwareRenderer->bg[3].sy = softwareRenderer->bg[3].dmy * y; + softwareRenderer->bg[2].sx = softwareRenderer->bg[2].refx + softwareRenderer->bg[2].dmx * y; + softwareRenderer->bg[2].sy = softwareRenderer->bg[2].refy + softwareRenderer->bg[2].dmy * y; + softwareRenderer->bg[3].sx = softwareRenderer->bg[3].refx + softwareRenderer->bg[3].dmx * y; + softwareRenderer->bg[3].sy = softwareRenderer->bg[3].refy + softwareRenderer->bg[3].dmy * y; int w; unsigned priority;