all repos — mgba @ 7ec435b94c9b982dd875a6b21798ce3c4a41be6a

mGBA Game Boy Advance Emulator

Fix 512x512 backgrounds in Mode 0
Jeffrey Pfau jeffrey@endrift.com
Sun, 05 May 2013 01:33:05 -0700
commit

7ec435b94c9b982dd875a6b21798ce3c4a41be6a

parent

ae3f623fd52475979c2da33ae1c00f565057ad69

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

jump to
M src/gba/renderers/video-software.csrc/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;