all repos — mgba @ 4e7f70c102dda40db7061da906ce80f0dc027d1c

mGBA Game Boy Advance Emulator

GB Video: Fix partial tile rendering in vram bank
Jeffrey Pfau jeffrey@endrift.com
Wed, 17 Feb 2016 19:09:44 -0800
commit

4e7f70c102dda40db7061da906ce80f0dc027d1c

parent

8608f11154ec861b81c0bb2f165a9880b59911a0

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

jump to
M src/gb/renderers/software.csrc/gb/renderers/software.c

@@ -202,8 +202,8 @@ bottomX = 7 - bottomX;

bottomX = 7 - bottomX; } } - uint8_t tileDataLower = data[(bgTile * 8 + localY) * 2]; - uint8_t tileDataUpper = data[(bgTile * 8 + localY) * 2 + 1]; + uint8_t tileDataLower = localData[(bgTile * 8 + localY) * 2]; + uint8_t tileDataUpper = localData[(bgTile * 8 + localY) * 2 + 1]; tileDataUpper >>= bottomX; tileDataLower >>= bottomX; renderer->row[x] = p | ((tileDataUpper & 1) << 1) | (tileDataLower & 1);