mirror of
https://github.com/encounter/SDL.git
synced 2025-12-17 17:05:23 +00:00
Emscripten: use UTF8ToString instead of Pointer_stringify
This commit is contained in:
@@ -210,7 +210,7 @@ Emscripten_ShowCursor(SDL_Cursor* cursor)
|
||||
if(curdata->system_cursor) {
|
||||
EM_ASM_INT({
|
||||
if (Module['canvas']) {
|
||||
Module['canvas'].style['cursor'] = Module['Pointer_stringify']($0);
|
||||
Module['canvas'].style['cursor'] = UTF8ToString($0);
|
||||
}
|
||||
return 0;
|
||||
}, curdata->system_cursor);
|
||||
|
||||
@@ -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