Feature #440 ยป 0052-emscripten-sdl-Let-browser-execute-during-gui_event_.patch
| client/gui-sdl2/gui_main.c | ||
|---|---|---|
|
#include <unistd.h>
|
||
|
#endif
|
||
|
#ifdef __EMSCRIPTEN__
|
||
|
#include <emscripten.h>
|
||
|
#endif
|
||
|
/* SDL2 */
|
||
|
#ifdef SDL2_PLAIN_INCLUDE
|
||
|
#include <SDL.h>
|
||
| ... | ... | |
|
}
|
||
|
update_main_screen();
|
||
|
#ifdef __EMSCRIPTEN__
|
||
|
emscripten_sleep(100);
|
||
|
#endif
|
||
|
}
|
||
|
return ID;
|
||
| client/gui-sdl3/gui_main.c | ||
|---|---|---|
|
#include <unistd.h>
|
||
|
#endif
|
||
|
#ifdef __EMSCRIPTEN__
|
||
|
#include <emscripten.h>
|
||
|
#endif
|
||
|
/* SDL3 */
|
||
|
#include <SDL3/SDL.h>
|
||
| ... | ... | |
|
}
|
||
|
update_main_screen();
|
||
|
#ifdef __EMSCRIPTEN__
|
||
|
emscripten_sleep(100);
|
||
|
#endif
|
||
|
}
|
||
|
return ID;
|
||