]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Do not trigger no signal state when in use programmed register changes, it might...
authorToni Wilen <twilen@winuae.net>
Sat, 22 Nov 2025 12:35:07 +0000 (14:35 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 22 Nov 2025 12:35:07 +0000 (14:35 +0200)
custom.cpp

index 21be93bf35c7849083da0c3c984ea18c18e5ae55..ae8dd89ff5e7042b643117469ad1690930cb4380 100644 (file)
@@ -3624,7 +3624,6 @@ static void varsync(int reg, bool resync, int oldval)
        // TOTAL
        if ((reg == 0x1c0 || reg == 0x1c8) && (beamcon0 & BEAMCON0_VARBEAMEN)) {
                varsync_changed = 1;
-               nosignal_trigger = true;
        }
        // VB
        if ((reg == 0x1cc || reg == 0x1ce) && (beamcon0 & BEAMCON0_VARVBEN)) {
@@ -3633,7 +3632,6 @@ static void varsync(int reg, bool resync, int oldval)
        // VS
        if ((reg == 0x1e0 || reg == 0x1ca) && (beamcon0 & bemcon0_vsync_mask)) {
                varsync_changed = 1;
-               nosignal_trigger = true;
        }
        // HS
        if ((reg == 0x1de || reg == 0x1c2) && (beamcon0 & bemcon0_hsync_mask)) {
@@ -5287,7 +5285,7 @@ static void check_no_signal(void)
                nosignal_trigger = true;
        }
        if (beamcon0 & BEAMCON0_VARBEAMEN) {
-               if (htotal < 50 || htotal > 250) {
+               if (htotal < 50 || htotal >= 255) {
                        nosignal_trigger = true;
                }
                if (vtotal < 100 || vtotal > 1000) {