Fix tiles being shifted when adjusting outX

This commit is contained in:
Jeffrey Pfau 2013-09-22 11:15:52 -07:00
parent ddf078383a
commit e7622ed70f
1 changed files with 1 additions and 0 deletions

View File

@ -898,6 +898,7 @@ static void _drawBackgroundMode0(struct GBAVideoSoftwareRenderer* renderer, stru
if (!mapData.hflip) { if (!mapData.hflip) {
outX = renderer->end - mod8; outX = renderer->end - mod8;
if (outX < 0) { if (outX < 0) {
tileData >>= 4 * -outX;
outX = 0; outX = 0;
} }
if (!variant) { if (!variant) {