From: Toni Wilen Date: Fri, 26 May 2023 18:28:32 +0000 (+0300) Subject: Restore acolors[] when in AGA mode. X-Git-Tag: 5.0.0~13 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=088e60d974f91e465084a56afc4e084d18ab355a;p=francis%2Fwinuae.git Restore acolors[] when in AGA mode. --- diff --git a/custom.cpp b/custom.cpp index 262f077a..fa8a8fb7 100644 --- a/custom.cpp +++ b/custom.cpp @@ -2209,6 +2209,11 @@ static void update_mirrors(void) } else { sprite_sprctlmask = 0x01; } + if (aga_mode) { + for (int i = 0; i < 256; i++) { + current_colors.acolors[i] = getxcolor(current_colors.color_regs_aga[i]); + } + } set_chipset_mode(); hsyncdebug = 0; if (currprefs.gfx_overscanmode >= OVERSCANMODE_ULTRA) { @@ -9973,7 +9978,7 @@ static void COLOR_WRITE(int hpos, uae_u16 v, int num) } remembered_color_entry = -1; current_colors.color_regs_ecs[num] = v; - current_colors.acolors[num] = getxcolor (v); + current_colors.acolors[num] = getxcolor(v); #ifdef AGA } #endif