From a378858ec65075afd858ab7b26f9c4b1610f1c5e Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 26 Nov 2022 19:54:38 +0200 Subject: [PATCH] Window caption double click fix. --- od-win32/win32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index 9d89c8bc..92406e86 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -2837,10 +2837,10 @@ static LRESULT CALLBACK MainWindowProc (HWND hWnd, UINT message, WPARAM wParam, case WM_NCLBUTTONDBLCLK: if (wParam == HTCAPTION) { - if (GetKeyState (VK_SHIFT)) { + if (GetKeyState(VK_SHIFT) & 0x8000) { toggle_fullscreen(0, 0); return 0; - } else if (GetKeyState (VK_CONTROL)) { + } else if (GetKeyState(VK_CONTROL) & 0x8000) { toggle_fullscreen(0, 2); return 0; } -- 2.47.3