all repos — mgba @ ff2641cbcc3bd592f7e9c602579deac0fcc3c9a8

mGBA Game Boy Advance Emulator

GB Video: Fix window y
Jeffrey Pfau jeffrey@endrift.com
Fri, 22 Jan 2016 00:14:13 -0800
commit

ff2641cbcc3bd592f7e9c602579deac0fcc3c9a8

parent

e11f9224ffd3bcb576d454428ecf6718d926f77f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gb/renderers/software.csrc/gb/renderers/software.c

@@ -148,7 +148,7 @@ maps += GB_SIZE_MAP;

} 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;