summaryrefslogtreecommitdiff
path: root/thirdparty/mbedtls/library/bignum.c
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-11-30 11:32:35 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-11-30 12:07:20 +0100
commit178546ac3e460864b897cf90d7835e982d237712 (patch)
treecfc774ab1acff3a0dbfb6520e9c8e5cbf186c9ab /thirdparty/mbedtls/library/bignum.c
parent742729ccfe98bb6c38453a45213d873f0579d1dd (diff)
[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.
Diffstat (limited to 'thirdparty/mbedtls/library/bignum.c')
0 files changed, 0 insertions, 0 deletions