Skip to content

Commit

Permalink
Emscripten: use UTF8ToString instead of Pointer_stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Jan 29, 2019
1 parent aacb109 commit 4a2888a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/SDL_assert.c
Expand Up @@ -250,7 +250,7 @@ SDL_PromptAssertion(const SDL_assert_data *data, void *userdata)
SDL_bool okay = SDL_TRUE;
char *buf = (char *) EM_ASM_INT({
var str =
Pointer_stringify($0) + '\n\n' +
UTF8ToString($0) + '\n\n' +
'Abort/Retry/Ignore/AlwaysIgnore? [ariA] :';
var reply = window.prompt(str, "i");
if (reply === null) {
Expand Down
2 changes: 1 addition & 1 deletion src/video/emscripten/SDL_emscriptenmouse.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/video/emscripten/SDL_emscriptenvideo.c
Expand Up @@ -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);
Expand Down

0 comments on commit 4a2888a

Please sign in to comment.