Color 0 must always be shared

This commit is contained in:
Lior Halphon 2018-11-24 15:53:53 +02:00
parent 4b93f89763
commit 6d28e74667

View File

@ -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)], &gb->sgb->ram_palettes[4 * (gb->sgb->command[7] + (gb->sgb->command[8] & 1) * 0x100)],
8); 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) { if (gb->sgb->command[9] & 0x80) {
load_attribute_file(gb, gb->sgb->command[9] & 0x3F); load_attribute_file(gb, gb->sgb->command[9] & 0x3F);
} }