Emscripten: use UTF8ToString instead of Pointer_stringify
This commit is contained in:
parent
aacb1091df
commit
4a2888af10
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue