GB Video: Fix window y

This commit is contained in:
Jeffrey Pfau 2016-01-22 00:14:13 -08:00
parent e11f9224ff
commit ff2641cbcc
1 changed files with 1 additions and 1 deletions

View File

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