Project

General

Profile

Feature #440 ยป 0052-emscripten-sdl-Let-browser-execute-during-gui_event_.patch

Marko Lindqvist, 04/11/2024 06:25 PM

View differences:

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;
    (1-1/1)