mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
emscripten: Fix crash in SDL_SetWindowTitle().
This patch came from emscripten-ports, thanks! Fixes Bugzilla #5133.
This commit is contained in:
parent
1a291ab118
commit
daf360e040
@ -366,8 +366,8 @@ Emscripten_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * di
|
|||||||
static void
|
static void
|
||||||
Emscripten_SetWindowTitle(_THIS, SDL_Window * window) {
|
Emscripten_SetWindowTitle(_THIS, SDL_Window * window) {
|
||||||
EM_ASM_INT({
|
EM_ASM_INT({
|
||||||
if (typeof Module['setWindowTitle'] !== 'undefined') {
|
if (typeof setWindowTitle !== 'undefined') {
|
||||||
Module['setWindowTitle'](UTF8ToString($0));
|
setWindowTitle(UTF8ToString($0));
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}, window->title);
|
}, window->title);
|
||||||
|
Loading…
Reference in New Issue
Block a user