virtualx-engine/platform/javascript
Fabio Alessandrelli 0f40391924 [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 11:29:35 +01:00
..
api [HTML5] Port JavaScript inline code to libraries. 2020-11-10 10:56:13 +01:00
export Export: Reorder options for consistency across platforms 2020-11-26 09:38:46 +01:00
js [HTML5] Remove file flags from writeFile in setup. 2020-11-30 11:29:32 +01:00
.eslintrc.engine.js [HTML5] Enforce JavaScript style with eslint. 2020-11-23 13:26:19 +01:00
.eslintrc.js [HTML5] Enforce JavaScript style with eslint. 2020-11-23 13:26:19 +01:00
.eslintrc.libs.js [HTML5] Enforce JavaScript style with eslint. 2020-11-23 13:26:19 +01:00
audio_driver_javascript.cpp [HTML5] AudioWorkletAPI implementation. 2020-11-10 11:05:15 +01:00
audio_driver_javascript.h [HTML5] AudioWorkletAPI implementation. 2020-11-10 11:05:15 +01:00
detect.py SCons: Remove unnecessary $LINK overrides 2020-11-26 09:38:45 +01:00
dom_keys.inc Swtich HTML5 key detection from keyCode to code. 2020-06-05 12:49:50 +02:00
emscripten_helpers.py [HTML5] Port JavaScript inline code to libraries. 2020-11-10 10:56:13 +01:00
godot_audio.h [HTML5] AudioWorkletAPI implementation. 2020-11-10 11:05:15 +01:00
godot_js.h [HTML5] Port JavaScript inline code to libraries. 2020-11-10 10:56:13 +01:00
http_client.h.inc Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
http_client_javascript.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
http_request.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
javascript_eval.cpp [HTML5] Port JavaScript inline code to libraries. 2020-11-10 10:56:13 +01:00
javascript_main.cpp [HTML5] Port JavaScript inline code to libraries. 2020-11-10 10:56:13 +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] Fix broken layout on load in HiDPI screens 2020-11-30 11:29:35 +01:00
os_javascript.h [HTML5] Port JavaScript inline code to libraries. 2020-11-10 10:56:13 +01:00
package-lock.json [HTML5] Enforce JavaScript style with eslint. 2020-11-23 13:26:19 +01:00
package.json [HTML5] Enforce JavaScript style with eslint. 2020-11-23 13:26:19 +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
SCsub [HTML5] Libraries refactor for linting. 2020-11-21 14:23:32 +01:00