all repos — mgba @ 2e77c45e06d33c52e4b55b5f1bc10a3fd4b9912c

mGBA Game Boy Advance Emulator

GB Video: Fix WX
Jeffrey Pfau jeffrey@endrift.com
Tue, 26 Jan 2016 20:58:00 -0800
commit

2e77c45e06d33c52e4b55b5f1bc10a3fd4b9912c

parent

eee24961b1f2b2bcdb50b132486c8690b8d7237c

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

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

@@ -150,7 +150,7 @@ maps = &softwareRenderer->d.vram[GB_BASE_MAP];

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) {