From e7622ed70f9397b0809dc2701a8ed3edbc272456 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 22 Sep 2013 11:15:52 -0700 Subject: [PATCH] Fix tiles being shifted when adjusting outX --- src/gba/renderers/video-software.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gba/renderers/video-software.c b/src/gba/renderers/video-software.c index 39fea11fa..682bcd28a 100644 --- a/src/gba/renderers/video-software.c +++ b/src/gba/renderers/video-software.c @@ -898,6 +898,7 @@ static void _drawBackgroundMode0(struct GBAVideoSoftwareRenderer* renderer, stru if (!mapData.hflip) { outX = renderer->end - mod8; if (outX < 0) { + tileData >>= 4 * -outX; outX = 0; } if (!variant) {