GB Video: Always initialize palette
Vicki Pfau vi@endrift.com
Mon, 13 Jul 2020 18:51:58 -0700
2 files changed,
3 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -15,6 +15,7 @@ - GB MBC: Fix MBC1 mode changing behavior
- GB MBC: Fix MBC1 RAM enable bit selection - GB MBC: Fix MBC2 bit selection - GB Video: Fix state after skipping BIOS (fixes mgba.io/i/1715 and mgba.io/i/1716) + - GB Video: Always initialize palette - GBA: Fix timing advancing too quickly in rare cases - GBA BIOS: Implement dummy sound driver calls - GBA BIOS: Improve HLE BIOS timing
M
src/gb/renderers/software.c
→
src/gb/renderers/software.c
@@ -213,6 +213,8 @@ softwareRenderer->lookup[i] = i;
softwareRenderer->lookup[i] = i; softwareRenderer->lookup[i] = i; } + + memset(softwareRenderer->palette, 0, sizeof(softwareRenderer->palette)); } static void GBVideoSoftwareRendererDeinit(struct GBVideoRenderer* renderer) {