mirror of
https://github.com/glfw/glfw.git
synced 2025-12-15 11:43:13 +00:00
wait-events glfwWaitEventsTimeout bugfixes
This commit is contained in:
parent
9f2dc1fce2
commit
4c2c30e951
@ -2187,7 +2187,7 @@ void _glfwWaitEventsTimeoutWin32(double timeout)
|
||||
ret = MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeout * 1e3), QS_ALLINPUT);
|
||||
|
||||
_glfwPollEventsWin32();
|
||||
} while (_glfw.newEventsRcvd == GLFW_FALSE || ret == WAIT_TIMEOUT);
|
||||
} while (_glfw.newEventsRcvd == GLFW_FALSE && ret != WAIT_TIMEOUT);
|
||||
}
|
||||
|
||||
void _glfwPostEmptyEventWin32(void)
|
||||
|
||||
@ -1209,6 +1209,7 @@ GLFWAPI void glfwWaitEventsTimeout(double timeout)
|
||||
return;
|
||||
}
|
||||
|
||||
_glfw.newEventsRcvd = GLFW_FALSE;
|
||||
_glfw.platform.waitEvents();
|
||||
_glfw.platform.waitEventsTimeout(timeout);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user