mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-02-02 15:31:09 +00:00
emscripten: Proxy SDL_GetUsableDisplayBounds to the main thread.
This commit is contained in:
parent
fe79eb2fbb
commit
ea7d5307ac
|
@ -174,10 +174,10 @@ Emscripten_GetDisplayUsableBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect *
|
||||||
if (rect) {
|
if (rect) {
|
||||||
rect->x = 0;
|
rect->x = 0;
|
||||||
rect->y = 0;
|
rect->y = 0;
|
||||||
rect->w = EM_ASM_INT_V({
|
rect->w = MAIN_THREAD_EM_ASM_INT({
|
||||||
return window.innerWidth;
|
return window.innerWidth;
|
||||||
});
|
});
|
||||||
rect->h = EM_ASM_INT_V({
|
rect->h = MAIN_THREAD_EM_ASM_INT({
|
||||||
return window.innerHeight;
|
return window.innerHeight;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue