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
SCsub [HTML5] Libraries refactor for linting. 2020-11-21 14:22:40 +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 Swtich HTML5 key detection from keyCode to code. 2020-06-04 21:15:05 +02:00
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.h.inc Port member initialization from constructor to declaration (C++11) 2020-05-14 10:01:56 +02:00
http_client_javascript.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
http_request.h Replace NULL with nullptr 2020-04-02 13:38:00 +02:00
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 Optimize images losslessly using `oxipng -o6 --strip all --zopfli` 2019-10-12 23:23:33 +02:00
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 Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
run_icon.png Optimize images losslessly using `oxipng -o6 --strip all --zopfli` 2018-06-28 19:17:41 +02:00