godot/platform/javascript
Fabio Alessandrelli 178546ac3e [HTML5] Fix broken layout on load in HiDPI screens
This was caused by the devicePixelRatio being applied twice, once by the
HTML code, once by the OS code.
More specifically, OS.get_window_size() would return the canvas element
size, while OS.set_window_size() would set the element size to the
specified value times the devicePixelRatio.
Calling OS.set_window_size(OS.get_window_size()) would reapply the
devicePixelRatio every time.
This commit changes the behaviour so that OS.set_window_size() do not
apply the devicePixelRatio to the canvas element size, by it divides the
CSS size instead.
2020-11-30 12:07:20 +01:00
..
api [HTML5] Port JavaScript inline code to libraries. 2020-11-10 11:42:51 +01:00
export Export: Reorder options for consistency across platforms 2020-11-20 11:17:50 +01:00
js [HTML5] Remove file flags from writeFile in setup. 2020-11-30 12:07:20 +01:00
.eslintrc.engine.js [HTML5] Enforce JavaScript style with eslint. 2020-11-23 12:15:18 +01:00
.eslintrc.js [HTML5] Enforce JavaScript style with eslint. 2020-11-23 12:15:18 +01:00
.eslintrc.libs.js [HTML5] Enforce JavaScript style with eslint. 2020-11-23 12:15:18 +01:00
audio_driver_javascript.cpp [HTML5] AudioWorklet API implementation. 2020-11-10 18:56:21 +01:00
audio_driver_javascript.h [HTML5] AudioWorklet API implementation. 2020-11-10 18:56:21 +01:00
detect.py [Complex Text Layouts] Add third-party TextServer dependencies (ICU, HarfBuzz, Graphite). 2020-11-26 13:55:27 +02:00
display_server_javascript.cpp [HTML5] Fix broken layout on load in HiDPI screens 2020-11-30 12:07:20 +01:00
display_server_javascript.h [HTML5] Port JavaScript inline code to libraries. 2020-11-10 11:42:51 +01:00
dom_keys.inc
emscripten_helpers.py [HTML5] Port JavaScript inline code to libraries. 2020-11-10 11:42:51 +01:00
godot_audio.h [HTML5] AudioWorklet API implementation. 2020-11-10 18:56:21 +01:00
godot_js.h [HTML5] Port JavaScript inline code to libraries. 2020-11-10 11:42:51 +01:00
http_client_javascript.cpp
http_client.h.inc
http_request.h
javascript_eval.cpp [HTML5] Port JavaScript inline code to libraries. 2020-11-10 11:42:51 +01:00
javascript_main.cpp [HTML5] Port JavaScript inline code to libraries. 2020-11-10 11:42:51 +01:00
logo.png
os_javascript.cpp [HTML5] Port JavaScript inline code to libraries. 2020-11-10 11:42:51 +01:00
os_javascript.h [HTML5] Port JavaScript inline code to libraries. 2020-11-10 11:42:51 +01:00
package-lock.json [HTML5] Enforce JavaScript style with eslint. 2020-11-23 12:15:18 +01:00
package.json [HTML5] Enforce JavaScript style with eslint. 2020-11-23 12:15:18 +01:00
platform_config.h
run_icon.png
SCsub [HTML5] Libraries refactor for linting. 2020-11-21 14:22:40 +01:00