Fix 512x512 backgrounds in Mode 0
Jeffrey Pfau jeffrey@endrift.com
Sun, 05 May 2013 01:33:05 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/gba/renderers/video-software.c
→
src/gba/renderers/video-software.c
@@ -636,7 +636,7 @@ int inY = y + background->y;
union GBATextMapData mapData; unsigned yBase = inY & 0xF8; - if (background->size & 2) { + if (background->size == 2) { yBase += inY & 0x100; } else if (background->size == 3) { yBase += (inY & 0x100) << 1;