GB Video: Fix partial tile rendering in vram bank

This commit is contained in:
Jeffrey Pfau 2016-02-17 19:09:44 -08:00
parent 8608f11154
commit 4e7f70c102
1 changed files with 2 additions and 2 deletions

View File

@ -202,8 +202,8 @@ static void GBVideoSoftwareRendererDrawBackground(struct GBVideoSoftwareRenderer
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);