From 6d28e74667b2a10206581b90d2413a68731a9189 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 24 Nov 2018 15:53:53 +0200 Subject: [PATCH] Color 0 must always be shared --- Core/sgb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/sgb.c b/Core/sgb.c index ed6bffd..19f70bd 100644 --- a/Core/sgb.c +++ b/Core/sgb.c @@ -174,6 +174,9 @@ static void command_ready(GB_gameboy_t *gb) &gb->sgb->ram_palettes[4 * (gb->sgb->command[7] + (gb->sgb->command[8] & 1) * 0x100)], 8); + gb->sgb->effective_palettes[12] = gb->sgb->effective_palettes[8] = + gb->sgb->effective_palettes[4] = gb->sgb->effective_palettes[0]; + if (gb->sgb->command[9] & 0x80) { load_attribute_file(gb, gb->sgb->command[9] & 0x3F); }