GBA BIOS: Reset renderer when RegisterRamReset called (fixes #1756)

This commit is contained in:
Vicki Pfau 2020-05-18 18:25:03 -07:00
parent 503a7486e0
commit 8ab757e1b3
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@ Emulation fixes:
- GBA: Add missing RTC overrides for Legendz games
- GBA BIOS: Implement dummy sound driver calls
- GBA BIOS: Improve HLE BIOS timing
- GBA BIOS: Reset renderer when RegisterRamReset called (fixes mgba.io/i/1756)
- GBA DMA: Linger last DMA on bus (fixes mgba.io/i/301 and mgba.io/i/1320)
- GBA Memory: Improve gamepak prefetch timing
- GBA SIO: Fix Multiplayer busy bit

View File

@ -177,6 +177,9 @@ static void _RegisterRamReset(struct GBA* gba) {
cpu->memory.store16(cpu, BASE_IO | 0x204, 0, 0);
cpu->memory.store16(cpu, BASE_IO | 0x208, 0, 0);
}
if (registers & 0x9C) {
gba->video.renderer->reset(gba->video.renderer);
}
}
static void _BgAffineSet(struct GBA* gba) {