all repos — mgba @ e7622ed70f9397b0809dc2701a8ed3edbc272456

mGBA Game Boy Advance Emulator

Fix tiles being shifted when adjusting outX
Jeffrey Pfau jeffrey@endrift.com
Sun, 22 Sep 2013 11:15:52 -0700
commit

e7622ed70f9397b0809dc2701a8ed3edbc272456

parent

ddf078383a6e02ad512e6661bf9608e9965501b5

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

jump to
M src/gba/renderers/video-software.csrc/gba/renderers/video-software.c

@@ -898,6 +898,7 @@ paletteData = mapData.palette << 4;

if (!mapData.hflip) { outX = renderer->end - mod8; if (outX < 0) { + tileData >>= 4 * -outX; outX = 0; } if (!variant) {