]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix Windows event handling
authorToni Wilen <twilen@winuae.net>
Mon, 20 Dec 2021 19:09:35 +0000 (21:09 +0200)
committerToni Wilen <twilen@winuae.net>
Mon, 20 Dec 2021 19:09:35 +0000 (21:09 +0200)
od-win32/win32.cpp

index 5116be335b360e63b09df9305a7b6aff97ce1468..0afd5e22e45f67153e2389b6ea962cb54cf83879 100644 (file)
@@ -3073,9 +3073,9 @@ int handle_msgpump(bool vblank)
        MSG msg;
        int got = 0;
 
-       UINT wRemoveMsg = PM_REMOVE | PM_NOYIELD | PM_QS_INPUT;
-       if (vblank) {
-               wRemoveMsg |= PM_QS_PAINT | PM_QS_POSTMESSAGE | PM_QS_SENDMESSAGE;
+       UINT wRemoveMsg = PM_REMOVE | PM_NOYIELD;
+       if (!vblank) {
+               wRemoveMsg |= PM_QS_INPUT;
        }
        while (PeekMessage(&msg, 0, 0, 0, wRemoveMsg)) {
                got = 1;