Fixed set_color_correction breaking DMG’s palette
This commit is contained in:
parent
a753e00b59
commit
e71154b7e0
@ -289,9 +289,11 @@ void GB_palette_changed(GB_gameboy_t *gb, bool background_palette, uint8_t index
|
|||||||
void GB_set_color_correction_mode(GB_gameboy_t *gb, GB_color_correction_mode_t mode)
|
void GB_set_color_correction_mode(GB_gameboy_t *gb, GB_color_correction_mode_t mode)
|
||||||
{
|
{
|
||||||
gb->color_correction_mode = mode;
|
gb->color_correction_mode = mode;
|
||||||
for (unsigned i = 0; i < 32; i++) {
|
if (gb->is_cgb) {
|
||||||
GB_palette_changed(gb, false, i * 2);
|
for (unsigned i = 0; i < 32; i++) {
|
||||||
GB_palette_changed(gb, true, i * 2);
|
GB_palette_changed(gb, false, i * 2);
|
||||||
|
GB_palette_changed(gb, true, i * 2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user