diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-01-30 11:35:03 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-02-19 05:12:32 +0100 |
commit | 65abf94675fbd7fddf8b3350efd15507ed3fb76a (patch) | |
tree | 1a7e0f39b69bc071fb6da2c048440549e06e5348 /platform/javascript/js/libs/library_godot_os.js | |
parent | 2972ea32297adfd9cc08c81dd85339679365f52e (diff) | |
download | redot-engine-65abf94675fbd7fddf8b3350efd15507ed3fb76a.tar.gz |
[HTML5] Better fullscreen, canvas resizing.
Three canvas resize policies:
- `None`: Godot window settings are ignored.
- `Project`: Godot handles the canvas like a native app (resizing it
when setting the window size).
- `Adaptive`: Canvas size will always adapt to browser window size.
Use `None` if you want to control the canvas size with custom JavaScript
code.
Diffstat (limited to 'platform/javascript/js/libs/library_godot_os.js')
-rw-r--r-- | platform/javascript/js/libs/library_godot_os.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/platform/javascript/js/libs/library_godot_os.js b/platform/javascript/js/libs/library_godot_os.js index ef6df17e97..0f189b013c 100644 --- a/platform/javascript/js/libs/library_godot_os.js +++ b/platform/javascript/js/libs/library_godot_os.js @@ -91,11 +91,6 @@ const GodotConfig = { godot_js_config_locale_get: function (p_ptr, p_ptr_max) { GodotRuntime.stringToHeap(GodotConfig.locale, p_ptr, p_ptr_max); }, - - godot_js_config_canvas_resize_policy_get__sig: 'i', - godot_js_config_canvas_resize_policy_get: function () { - return GodotConfig.canvas_resize_policy; - }, }; autoAddDeps(GodotConfig, '$GodotConfig'); |