Fall back to polling normally if not operating the win32 message loop

In this condition, we cannot safely wait/wake on events.
This commit is contained in:
Cameron Gutman
2021-06-05 11:46:47 -05:00
committed by Sam Lantinga
parent e13d5df00b
commit 85b51e6c92
2 changed files with 13 additions and 3 deletions

View File

@@ -1303,9 +1303,13 @@ WIN_WaitEventTimeout(_THIS, int timeout)
TranslateMessage(&msg);
DispatchMessage(&msg);
return 1;
} else {
return 0;
}
} else {
/* Fail the wait so the caller falls back to polling */
return -1;
}
return 0;
}
void