mirror of https://github.com/mgba-emu/mgba.git
Fix 512x512 backgrounds in Mode 0
This commit is contained in:
parent
ae3f623fd5
commit
7ec435b94c
|
@ -636,7 +636,7 @@ static void _drawBackgroundMode0(struct GBAVideoSoftwareRenderer* renderer, stru
|
||||||
union GBATextMapData mapData;
|
union GBATextMapData mapData;
|
||||||
|
|
||||||
unsigned yBase = inY & 0xF8;
|
unsigned yBase = inY & 0xF8;
|
||||||
if (background->size & 2) {
|
if (background->size == 2) {
|
||||||
yBase += inY & 0x100;
|
yBase += inY & 0x100;
|
||||||
} else if (background->size == 3) {
|
} else if (background->size == 3) {
|
||||||
yBase += (inY & 0x100) << 1;
|
yBase += (inY & 0x100) << 1;
|
||||||
|
|
Loading…
Reference in New Issue