Skip to content

Commit 7f701af

Browse files
committed
emsc: minor change
1 parent 398b6e8 commit 7f701af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ruisapp/glue/sdl/glue.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,10 +680,10 @@ void main_loop_iteration(void* user_data)
680680

681681
render(*app);
682682

683+
#if CFG_OS_NAME != CFG_OS_NAME_EMSCRIPTEN
683684
// clamp to_wait_ms to max of int as SDL_WaitEventTimeout() accepts int type
684685
to_wait_ms = std::min(to_wait_ms, uint32_t(std::numeric_limits<int32_t>::max()));
685686

686-
#if CFG_OS_NAME != CFG_OS_NAME_EMSCRIPTEN
687687
if (SDL_WaitEventTimeout(nullptr, int(to_wait_ms)) == 0) {
688688
// No events or error. In case of error not much we can do, just ignore it.
689689
return;

0 commit comments

Comments
 (0)