mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-04 16:28:00 +01:00
emscripten: Dispatch resize event on boot
Workarounds invalid hidpi detection on launch.
This commit is contained in:
parent
f8213e73fa
commit
f927cb94e9
1 changed files with 1 additions and 0 deletions
|
@ -540,6 +540,7 @@ SYMBOL_EXPORT int libsuperderpy_run(struct Game* game) {
|
|||
emscripten_set_main_loop_arg(libsuperderpy_emscripten_mainloop, game, 0, false);
|
||||
EM_ASM({
|
||||
if (Module.hideLoading) Module.hideLoading();
|
||||
window.dispatchEvent(new Event('resize'));
|
||||
});
|
||||
return 0;
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue