]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Window caption double click fix.
authorToni Wilen <twilen@winuae.net>
Sat, 26 Nov 2022 17:54:38 +0000 (19:54 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 26 Nov 2022 17:54:38 +0000 (19:54 +0200)
od-win32/win32.cpp

index 9d89c8bcbc0ad3acc74e98ef3d394675ef652d1f..92406e86749b82fb284db3c980237bf90ac957fe 100644 (file)
@@ -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;
                        }