From b8ffaa4412c61ba48e6d15a1a8ca26687c1a5171 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 27 Nov 2021 16:55:25 +0200 Subject: [PATCH] Don't store color/blanking changes if chipset mode is not active. --- custom.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) { -- 2.47.3