all repos — mgba @ e1d5f3f457972dd5eff1c1d139edb5c0c9bc8066

mGBA Game Boy Advance Emulator

Fix drawing wide backgrounds
Jeffrey Pfau jeffrey@endrift.com
Mon, 22 Apr 2013 02:07:19 -0700
commit

e1d5f3f457972dd5eff1c1d139edb5c0c9bc8066

parent

b48b868cfb8bb03bf7445c93b9534207393eebdb

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

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