godot/platform
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
..
android Export: Reorder options for consistency across platforms 2020-11-26 09:38:46 +01:00
iphone iOS: fix native video 2020-11-26 09:38:47 +01:00
javascript [HTML5] Fix broken layout on load in HiDPI screens 2020-11-30 11:29:35 +01:00
osx SCons: Remove unnecessary $LINK overrides 2020-11-26 09:38:45 +01:00
server SCons: Do not define TYPED_METHOD_BIND on Linux/OSX with clang 2020-11-25 21:17:48 +01:00
uwp Export: Reorder options for consistency across platforms 2020-11-26 09:38:46 +01:00
windows SCons: Remove unnecessary $LINK overrides 2020-11-26 09:38:45 +01:00
x11 Merge pull request #42685 from nekomatata/x11-clipboard-fixes-3.2 2020-11-26 09:34:53 +01:00
register_platform_apis.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00