mirror of https://github.com/mgba-emu/mgba.git
Fix drawing wide backgrounds
This commit is contained in:
parent
b48b868cfb
commit
e1d5f3f457
|
@ -216,7 +216,7 @@ static void _drawBackgroundMode0(struct GBAVideoSoftwareRenderer* renderer, stru
|
|||
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];
|
||||
|
|
Loading…
Reference in New Issue