From: Toni Wilen Date: Mon, 20 Dec 2021 19:09:35 +0000 (+0200) Subject: Fix Windows event handling X-Git-Tag: 4910~37 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=caa2bc4d6aad0b50ca275467a19500174575bb99;p=francis%2Fwinuae.git Fix Windows event handling --- diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index 5116be33..0afd5e22 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -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;