mirror of
https://github.com/encounter/SDL.git
synced 2025-12-10 05:57:44 +00:00
emscripten: use emscripten_set_window_title api
This commit is contained in:
committed by
Charlie Birks
parent
d8baad7e48
commit
55af8dcad9
@@ -352,12 +352,7 @@ 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({
|
emscripten_set_window_title(window->title);
|
||||||
if (typeof setWindowTitle !== 'undefined') {
|
|
||||||
setWindowTitle(UTF8ToString($0));
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}, window->title);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* SDL_VIDEO_DRIVER_EMSCRIPTEN */
|
#endif /* SDL_VIDEO_DRIVER_EMSCRIPTEN */
|
||||||
|
|||||||
Reference in New Issue
Block a user