Fix drawing wide backgrounds
Jeffrey Pfau jeffrey@endrift.com
Mon, 22 Apr 2013 02:07:19 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/gba/renderers/video-software.c
→
src/gba/renderers/video-software.c
@@ -216,7 +216,7 @@
for (int outX = start; outX < end; ++outX) { xBase = (outX + inX) & 0xF8; if (background->size & 1) { - xBase += ((outX + inX) & 0x100) << 3; + xBase += ((outX + inX) & 0x100) << 5; } screenBase = (background->screenBase >> 1) + (xBase >> 3) + (yBase << 2); mapData.packed = renderer->d.vram[screenBase];