mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 16:55:35 +00:00
emscripten: use emscripten_get_screen_size api
This commit is contained in:
parent
abc04270b7
commit
d8baad7e48
|
@ -137,14 +137,7 @@ Emscripten_VideoInit(_THIS)
|
||||||
|
|
||||||
/* Use a fake 32-bpp desktop mode */
|
/* Use a fake 32-bpp desktop mode */
|
||||||
mode.format = SDL_PIXELFORMAT_RGB888;
|
mode.format = SDL_PIXELFORMAT_RGB888;
|
||||||
|
emscripten_get_screen_size(&mode.w, &mode.h);
|
||||||
mode.w = EM_ASM_INT_V({
|
|
||||||
return screen.width;
|
|
||||||
});
|
|
||||||
|
|
||||||
mode.h = EM_ASM_INT_V({
|
|
||||||
return screen.height;
|
|
||||||
});
|
|
||||||
|
|
||||||
mode.refresh_rate = 0;
|
mode.refresh_rate = 0;
|
||||||
mode.driverdata = NULL;
|
mode.driverdata = NULL;
|
||||||
|
|
Loading…
Reference in a new issue