178546ac3e
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. |
||
---|---|---|
.. | ||
android | ||
iphone | ||
javascript | ||
linuxbsd | ||
osx | ||
server | ||
uwp | ||
windows | ||
SCsub | ||
register_platform_apis.h |