From: Toni Wilen Date: Sat, 27 Nov 2021 14:55:25 +0000 (+0200) Subject: Don't store color/blanking changes if chipset mode is not active. X-Git-Tag: 4900~10 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=b8ffaa4412c61ba48e6d15a1a8ca26687c1a5171;p=francis%2Fwinuae.git Don't store color/blanking changes if chipset mode is not active. --- diff --git a/custom.cpp b/custom.cpp index 953d1a03..9f2da1ea 100644 --- a/custom.cpp +++ b/custom.cpp @@ -891,12 +891,13 @@ static void hblank_reset(int hblankpos) static void record_color_change2(int hpos, int regno, uae_u32 value) { color_change *cc; - int pos = hpos < 0 ? -hpos : hpos_to_diw(hpos); - if (scandoubled_line || line_hidden()) { + if (scandoubled_line || line_hidden() || nocustom()) { return; } + int pos = hpos < 0 ? -hpos : hpos_to_diw(hpos); + // AGA has extra hires pixel delay in color changes if ((regno < RECORDED_REGISTER_CHANGE_OFFSET || regno == RECORDED_REGISTER_CHANGE_OFFSET + 0x10c) && aga_mode) { if (currprefs.chipset_hr) {