From ff2641cbcc3bd592f7e9c602579deac0fcc3c9a8 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 22 Jan 2016 00:14:13 -0800 Subject: [PATCH] GB Video: Fix window y --- 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 dc3f339fb..3d59d8d20 100644 --- a/src/gb/renderers/software.c +++ b/src/gb/renderers/software.c @@ -148,7 +148,7 @@ static void GBVideoSoftwareRendererDrawScanline(struct GBVideoRenderer* renderer } GBVideoSoftwareRendererDrawBackground(softwareRenderer, maps, 0, y, softwareRenderer->scx, softwareRenderer->scy); - if (GBRegisterLCDCIsWindow(softwareRenderer->lcdc) && softwareRenderer->wy < GB_VIDEO_VERTICAL_PIXELS) { + if (GBRegisterLCDCIsWindow(softwareRenderer->lcdc) && softwareRenderer->wy <= y) { maps = &softwareRenderer->d.vram[GB_BASE_MAP]; if (GBRegisterLCDCIsWindowTileMap(softwareRenderer->lcdc)) { maps += GB_SIZE_MAP;