From 8acf96d05d6c5776f34138347c61ff70e1f5f58d Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 13 Jun 2025 17:55:44 +0300 Subject: [PATCH] Update current hpos max count even when chipset display is hidden behind RTG screen. --- custom.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/custom.cpp b/custom.cpp index 63f86dea..ebfb6bff 100644 --- a/custom.cpp +++ b/custom.cpp @@ -11345,11 +11345,18 @@ static void custom_trigger_start(void) int custom_fastmode_prev = custom_fastmode; - if (custom_disabled && !eventtab[ev_sync].active && !currprefs.cpu_memory_cycle_exact && currprefs.cs_optimizations < DISPLAY_OPTIMIZATIONS_NONE) { - custom_fastmode = 0; - start_sync_imm_handler(); - write_log("Chipset emulation inactive\n"); + if (custom_disabled) { + if (!eventtab[ev_sync].active && !currprefs.cpu_memory_cycle_exact && currprefs.cs_optimizations < DISPLAY_OPTIMIZATIONS_NONE) { + custom_fastmode = 0; + start_sync_imm_handler(); + write_log("Chipset emulation inactive\n"); + } + linear_hpos_prev[2] = linear_hpos_prev[1]; + linear_hpos_prev[1] = linear_hpos_prev[0]; + linear_hpos_prev[0] = maxhpos_short; + linear_hpos = maxhpos_short; } + if (!canvhposw()) { // ignore pending V(H)POSW writes if in normal mode if (agnus_pos_change > -2) { -- 2.47.3