virtualx-engine/platform
Jamie Pate c2e3971013 Improve performance of screen_get_dpi() in Javascript
Replace a bisect with a single multiplication when calling
screen_get_dpi() in Javascript

Tested the value of
window.matchMedia(`(resolution:${(window.devicePixelRatio*96).toFixed(100)}dpi)`).matches
which is true except for values that cause a lot of rounding errors
(e.g. dpr : 0.3  => resolution: 28.799999999999997dpi)

Even in these cases the value matches the result of the previous
`findDPI()` method.

See also:

6cff589b5b (r81273660)
2022-08-15 21:12:19 -07:00
..
android Disable threads used to check on plugins to load 2022-08-15 02:30:43 -07:00
ios Disable threads used to check on plugins to load 2022-08-15 02:30:43 -07:00
javascript Improve performance of screen_get_dpi() in Javascript 2022-08-15 21:12:19 -07:00
linuxbsd Fix memory leak when accessing/listing system fonts. 2022-08-09 12:57:53 +03:00
macos Refactor the export checking logic to improve separation of concerns 2022-08-14 09:12:04 -07:00
uwp Refactor the export checking logic to improve separation of concerns 2022-08-14 09:12:04 -07:00
windows Refactor the export checking logic to improve separation of concerns 2022-08-14 09:12:04 -07:00
register_platform_apis.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00