GB Video: Fix partial tile rendering in vram bank
Jeffrey Pfau jeffrey@endrift.com
Wed, 17 Feb 2016 19:09:44 -0800
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/gb/renderers/software.c
→
src/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);