]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix resync blanking.
authorToni Wilen <twilen@winuae.net>
Mon, 3 Oct 2022 17:32:35 +0000 (20:32 +0300)
committerToni Wilen <twilen@winuae.net>
Mon, 3 Oct 2022 17:32:35 +0000 (20:32 +0300)
custom.cpp
od-win32/win32gui.cpp

index 0766623f878688000c5c6c98330df970df70f703..038810a4b74aebc0fa8b21bdc37c893b24cdfe55 100644 (file)
@@ -5603,7 +5603,7 @@ static void reset_decisions_hsync_start(void)
        if (currprefs.gfx_overscanmode == OVERSCANMODE_ULTRA) {
                thisline_decision.vb = VB_NOVB;
        }
-       if (nosignal_status >= 1) {
+       if (nosignal_status == 1) {
                thisline_decision.vb = VB_XBLANK;
                MARK_LINE_CHANGED;
        } else if (nosignal_status < 0) {
index fd5cd9105f9fac7d43e3c1b8a8776ddc4aaa4a6c..686c1d00e41fbe68dd4a287e1b41b3cbc30af605 100644 (file)
@@ -8619,7 +8619,7 @@ static void values_from_displaydlg (HWND hDlg, UINT msg, WPARAM wParam, LPARAM l
        workprefs.gfx_blackerthanblack = ischecked (hDlg, IDC_BLACKER_THAN_BLACK);
        workprefs.gfx_autoresolution_vga = ischecked(hDlg, IDC_AUTORESOLUTIONVGA);
        workprefs.gfx_grayscale = ischecked(hDlg, IDC_GRAYSCALE);
-       workprefs.gfx_monitorblankdelay = CheckDlgButton(hDlg, IDC_RESYNCBLANK, workprefs.gfx_monitorblankdelay) ? 1000 : 0;
+       workprefs.gfx_monitorblankdelay = ischecked(hDlg, IDC_RESYNCBLANK) ? 1000 : 0;
 
        int vres = workprefs.gfx_vresolution;
        int viscan = workprefs.gfx_iscanlines;