From a2fba135eaad0fa1194e4305df5a4a1f3aba6540 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 3 Oct 2022 20:32:35 +0300 Subject: [PATCH] Fix resync blanking. --- custom.cpp | 2 +- od-win32/win32gui.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom.cpp b/custom.cpp index 0766623f..038810a4 100644 --- a/custom.cpp +++ b/custom.cpp @@ -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) { diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index fd5cd910..686c1d00 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -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; -- 2.47.3