Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit 2ee1b48

Browse files
committed
emscripten: use emscripten_set_window_title api
1 parent 5130f8b commit 2ee1b48

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/video/emscripten/SDL_emscriptenvideo.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,7 @@ Emscripten_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * di
340340

341341
static void
342342
Emscripten_SetWindowTitle(_THIS, SDL_Window * window) {
343-
EM_ASM_INT({
344-
if (typeof Module['setWindowTitle'] !== 'undefined') {
345-
Module['setWindowTitle'](UTF8ToString($0));
346-
}
347-
return 0;
348-
}, window->title);
343+
emscripten_set_window_title(window->title);
349344
}
350345

351346
#endif /* SDL_VIDEO_DRIVER_EMSCRIPTEN */

0 commit comments

Comments
 (0)