mirror of
https://github.com/godotengine/godot.git
synced 2025-10-21 00:43:46 +00:00
p_screen param from get_screen_* funcs now default to the current screen
This commit is contained in:
parent
f6c39830cb
commit
63f847b306
12 changed files with 47 additions and 26 deletions
|
@ -687,8 +687,6 @@ OS::VideoMode OS_JavaScript::get_video_mode(int p_screen) const {
|
|||
|
||||
Size2 OS_JavaScript::get_screen_size(int p_screen) const {
|
||||
|
||||
ERR_FAIL_COND_V(p_screen != 0, Size2());
|
||||
|
||||
EmscriptenFullscreenChangeEvent ev;
|
||||
EMSCRIPTEN_RESULT result = emscripten_get_fullscreen_status(&ev);
|
||||
ERR_FAIL_COND_V(result != EMSCRIPTEN_RESULT_SUCCESS, Size2());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue