mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Fix backdrop color if DISPCNT is first set to 0 (fixes #2260)
This commit is contained in:
parent
9d3b4459ee
commit
c2f40b88ef
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue