From: Toni Wilen Date: Sat, 26 Nov 2022 17:54:38 +0000 (+0200) Subject: Window caption double click fix. X-Git-Tag: 41000~46 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=a378858ec65075afd858ab7b26f9c4b1610f1c5e;p=francis%2Fwinuae.git Window caption double click fix. --- 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; }