mirror of
https://github.com/glfw/glfw.git
synced 2025-12-15 11:43:13 +00:00
Fix warning
This commit is contained in:
parent
e12aacb41a
commit
97fd1cd2a1
@ -2181,13 +2181,12 @@ void _glfwWaitEventsWin32(void)
|
||||
|
||||
void _glfwWaitEventsTimeoutWin32(double timeout)
|
||||
{
|
||||
DWORD ret;
|
||||
double timeStart, timeEnd, timeWait;
|
||||
timeStart = glfwGetTime();
|
||||
timeWait = timeout;
|
||||
do
|
||||
{
|
||||
ret = MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeWait * 1e3), QS_ALLINPUT);
|
||||
MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeWait * 1e3), QS_ALLINPUT);
|
||||
|
||||
_glfwPollEventsWin32();
|
||||
timeEnd = glfwGetTime();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user