mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-02-02 14:21:10 +00:00
emscripten: use emscripten_set_window_title api
This commit is contained in:
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 */
|
||||||
|
|
Loading…
Reference in a new issue