Revert "Simplify win32_process_events"

This reverts commit 13bfb9710b1e4a1bb5eeb24d20d69a3f52fd0cf2.
This commit is contained in:
twinaphex 2019-07-17 23:08:18 +02:00
parent 801b0742d8
commit 0b46e685f1

View File

@ -31,10 +31,15 @@ static void* ui_application_win32_initialize(void)
static void ui_application_win32_process_events(void)
{
MSG msg;
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))
{
TranslateMessage(&msg);
DispatchMessage (&msg);
MSG msg;
if (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
DispatchMessage (&msg);
}
}
}