Fix 512x512 backgrounds in Mode 0

This commit is contained in:
Jeffrey Pfau 2013-05-05 01:33:05 -07:00
parent ae3f623fd5
commit 7ec435b94c
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ static void _drawBackgroundMode0(struct GBAVideoSoftwareRenderer* renderer, stru
union GBATextMapData mapData;
unsigned yBase = inY & 0xF8;
if (background->size & 2) {
if (background->size == 2) {
yBase += inY & 0x100;
} else if (background->size == 3) {
yBase += (inY & 0x100) << 1;