From 2e77c45e06d33c52e4b55b5f1bc10a3fd4b9912c Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 26 Jan 2016 20:58:00 -0800 Subject: [PATCH] GB Video: Fix WX --- src/gb/renderers/software.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gb/renderers/software.c b/src/gb/renderers/software.c index 66f0af181..be6aa3612 100644 --- a/src/gb/renderers/software.c +++ b/src/gb/renderers/software.c @@ -150,7 +150,7 @@ static void GBVideoSoftwareRendererDrawScanline(struct GBVideoRenderer* renderer if (GBRegisterLCDCIsWindowTileMap(softwareRenderer->lcdc)) { maps += GB_SIZE_MAP; } - GBVideoSoftwareRendererDrawBackground(softwareRenderer, maps, 0, y, 7 - softwareRenderer->wx, -softwareRenderer->wy); + GBVideoSoftwareRendererDrawBackground(softwareRenderer, maps, softwareRenderer->wx - 7, y, 7 - softwareRenderer->wx, -softwareRenderer->wy); } } else { for (x = 0; x < GB_VIDEO_HORIZONTAL_PIXELS; ++x) {