From 7ee7734a73f728107622eb72c68f5bbfbef3d821 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 18 May 2020 18:25:03 -0700 Subject: [PATCH] GBA BIOS: Reset renderer when RegisterRamReset called (fixes #1756) --- CHANGES | 1 + src/gba/bios.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGES b/CHANGES index 729ec6d9c..c4d665630 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,7 @@ - GB MBC: Support 4MB MBC30 ROMs (fixes mgba.io/i/1713) - GB Video: Fix BGPS value after skipping BIOS (fixes mgba.io/i/1717) - GBA: Add missing RTC overrides for Legendz games + - GBA BIOS: Reset renderer when RegisterRamReset called (fixes mgba.io/i/1756) - GBA SIO: Fix Multiplayer busy bit - GBA SIO: Fix double-unloading active driver - GBA Timers: Fix deserializing count-up timers diff --git a/src/gba/bios.c b/src/gba/bios.c index a264354eb..3045fb46c 100644 --- a/src/gba/bios.c +++ b/src/gba/bios.c @@ -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) {