Simplify win32_process_events

This commit is contained in:
twinaphex 2019-07-17 21:53:44 +02:00
parent 876aca8817
commit 13bfb9710b

View File

@ -37,16 +37,11 @@ static bool ui_application_win32_pending_events(void)
static void ui_application_win32_process_events(void)
{
MSG msg;
while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))
{
MSG msg;
if (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
DispatchMessage (&msg);
}
}
}
ui_application_t ui_application_win32 = {