From: Toni Wilen Date: Mon, 3 Oct 2022 17:32:35 +0000 (+0300) Subject: Fix resync blanking. X-Git-Tag: 41000~126 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=a2fba135eaad0fa1194e4305df5a4a1f3aba6540;p=francis%2Fwinuae.git Fix resync blanking. --- 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;