all repos — mgba @ c28c290295e63cbcf08cf1dd14b2280bcc51a2e4

mGBA Game Boy Advance Emulator

GB Video: Always initialize palette
Vicki Pfau vi@endrift.com
Mon, 13 Jul 2020 18:51:58 -0700
commit

c28c290295e63cbcf08cf1dd14b2280bcc51a2e4

parent

007baef3b03daf1e00123eb485c4ec92448c04db

2 files changed, 3 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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) {