Skip to content

Commit

Permalink
emscripten: Proxy SDL_GetUsableDisplayBounds to the main thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 31, 2022
1 parent fe79eb2 commit ea7d530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/emscripten/SDL_emscriptenvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ Emscripten_GetDisplayUsableBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect *
if (rect) {
rect->x = 0;
rect->y = 0;
rect->w = EM_ASM_INT_V({
rect->w = MAIN_THREAD_EM_ASM_INT({
return window.innerWidth;
});
rect->h = EM_ASM_INT_V({
rect->h = MAIN_THREAD_EM_ASM_INT({
return window.innerHeight;
});
}
Expand Down

0 comments on commit ea7d530

Please sign in to comment.