mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Simplify win32_process_events
This commit is contained in:
parent
876aca8817
commit
13bfb9710b
@ -37,15 +37,10 @@ static bool ui_application_win32_pending_events(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;
|
TranslateMessage(&msg);
|
||||||
|
DispatchMessage (&msg);
|
||||||
if (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
|
|
||||||
{
|
|
||||||
TranslateMessage(&msg);
|
|
||||||
DispatchMessage (&msg);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user