We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 398b6e8 commit 7f701afCopy full SHA for 7f701af
1 file changed
src/ruisapp/glue/sdl/glue.cxx
@@ -680,10 +680,10 @@ void main_loop_iteration(void* user_data)
680
681
render(*app);
682
683
+#if CFG_OS_NAME != CFG_OS_NAME_EMSCRIPTEN
684
// clamp to_wait_ms to max of int as SDL_WaitEventTimeout() accepts int type
685
to_wait_ms = std::min(to_wait_ms, uint32_t(std::numeric_limits<int32_t>::max()));
686
-#if CFG_OS_NAME != CFG_OS_NAME_EMSCRIPTEN
687
if (SDL_WaitEventTimeout(nullptr, int(to_wait_ms)) == 0) {
688
// No events or error. In case of error not much we can do, just ignore it.
689
return;
0 commit comments