GBA Video: Fix backdrop color if DISPCNT is first set to 0 (fixes )

This commit is contained in:
Vicki Pfau 2021-07-27 19:14:53 -07:00
parent 9d3b4459ee
commit c2f40b88ef
2 changed files with 2 additions and 0 deletions
CHANGES
src/gba/renderers

View File

@ -13,6 +13,7 @@ Emulation fixes:
- GB Memory: Add cursory cartridge open bus emulation (fixes mgba.io/i/2032)
- GBA: Improve timing when not booting from BIOS
- GBA SIO: Fix SI value for unattached MULTI mode
- GBA Video: Fix backdrop color if DISPCNT is first set to 0 (fixes mgba.io/i/2260)
Other fixes:
- Core: Don't attempt to restore rewind diffs past start of rewind
- GB Video: Fix memory leak when reseting SGB games

View File

@ -933,6 +933,7 @@ void GBAVideoGLRendererReset(struct GBAVideoRenderer* renderer) {
glRenderer->nextPalette = 0;
glRenderer->paletteDirtyScanlines = GBA_VIDEO_VERTICAL_PIXELS;
memset(glRenderer->shadowRegs, 0, sizeof(glRenderer->shadowRegs));
glRenderer->shadowRegs[REG_DISPCNT >> 1] = glRenderer->dispcnt;
glRenderer->regsDirty = 0xFFFFFFFFFFFEULL;
int i;