mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Fix enabling layers in non-tile modes (fixes #1317)
This commit is contained in:
parent
5effd9c113
commit
e5161b766d
1
CHANGES
1
CHANGES
|
@ -23,6 +23,7 @@ Bugfixes:
|
||||||
- GBA DMA: Fix DMA start/end timing
|
- GBA DMA: Fix DMA start/end timing
|
||||||
- Qt: Fix window icon on X11
|
- Qt: Fix window icon on X11
|
||||||
- GB, GBA Serialize: Fix loading two states in a row
|
- GB, GBA Serialize: Fix loading two states in a row
|
||||||
|
- GBA Video: Fix enabling layers in non-tile modes (fixes mgba.io/i/1317)
|
||||||
Misc:
|
Misc:
|
||||||
- GBA Savedata: EEPROM performance fixes
|
- GBA Savedata: EEPROM performance fixes
|
||||||
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
|
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
|
||||||
|
|
|
@ -727,7 +727,8 @@ static void _enableBg(struct GBAVideoSoftwareRenderer* renderer, int bg, bool ac
|
||||||
if (!active) {
|
if (!active) {
|
||||||
renderer->bg[bg].enabled = 0;
|
renderer->bg[bg].enabled = 0;
|
||||||
} else if (!wasActive && active) {
|
} else if (!wasActive && active) {
|
||||||
if (renderer->nextY == 0) {
|
if (renderer->nextY == 0 || GBARegisterDISPCNTGetMode(renderer->dispcnt) > 2) {
|
||||||
|
// TODO: Investigate in more depth how switching background works in different modes
|
||||||
renderer->bg[bg].enabled = 4;
|
renderer->bg[bg].enabled = 4;
|
||||||
} else {
|
} else {
|
||||||
renderer->bg[bg].enabled = 1;
|
renderer->bg[bg].enabled = 1;
|
||||||
|
|
Loading…
Reference in New Issue