]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Update current hpos max count even when chipset display is hidden behind RTG screen.
authorToni Wilen <twilen@winuae.net>
Fri, 13 Jun 2025 14:55:44 +0000 (17:55 +0300)
committerToni Wilen <twilen@winuae.net>
Fri, 13 Jun 2025 14:55:44 +0000 (17:55 +0300)
custom.cpp

index 63f86dea79c18ea91c50342a696be721e79914bc..ebfb6bff980cd5c9513473f952a9ec371aee23af 100644 (file)
@@ -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) {