Revert "Revert "Simplify win32_process_events""
This reverts commit 0b46e685f1
.
This commit is contained in:
parent
0b46e685f1
commit
ff2f2222e5
|
@ -31,16 +31,11 @@ static void* ui_application_win32_initialize(void)
|
||||||
static void ui_application_win32_process_events(void)
|
static void ui_application_win32_process_events(void)
|
||||||
{
|
{
|
||||||
MSG msg;
|
MSG msg;
|
||||||
while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))
|
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
|
||||||
{
|
|
||||||
MSG msg;
|
|
||||||
|
|
||||||
if (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
|
|
||||||
{
|
{
|
||||||
TranslateMessage(&msg);
|
TranslateMessage(&msg);
|
||||||
DispatchMessage (&msg);
|
DispatchMessage (&msg);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ui_application_t ui_application_win32 = {
|
ui_application_t ui_application_win32 = {
|
||||||
|
|
Loading…
Reference in New Issue