mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 23:48:29 +00:00
Emscripten: use UTF8ToString instead of Pointer_stringify
This commit is contained in:
@@ -344,7 +344,7 @@ static void
|
||||
Emscripten_SetWindowTitle(_THIS, SDL_Window * window) {
|
||||
EM_ASM_INT({
|
||||
if (typeof Module['setWindowTitle'] !== 'undefined') {
|
||||
Module['setWindowTitle'](Module['Pointer_stringify']($0));
|
||||
Module['setWindowTitle'](UTF8ToString($0));
|
||||
}
|
||||
return 0;
|
||||
}, window->title);
|
||||
|
Reference in New Issue
Block a user