virtualx-engine/platform
Jamie Pate 562d7c616d 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)
(cherry picked from commit c2e3971013)
2022-08-24 17:16:33 +02:00
..
android Fix issue with get_current_dir() returning the wrong path on Android 2022-08-19 20:32:55 -07:00
iphone Clean iOS platform config of long gone macro 2022-08-24 17:13:21 +02:00
javascript Improve performance of screen_get_dpi() in Javascript 2022-08-24 17:16:33 +02:00
osx Refactor the export checking logic to improve separation of concerns 2022-08-14 08:47:09 -07:00
server Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
uwp Refactor the export checking logic to improve separation of concerns 2022-08-14 08:47:09 -07:00
windows Refactor the export checking logic to improve separation of concerns 2022-08-14 08:47:09 -07:00
x11 Merge pull request #63643 from aaronfranke/3.x-mouse-mode-ch 2022-08-08 14:36:45 +02:00
register_platform_apis.h Code quality: Fix header guards consistency 2022-07-25 14:53:37 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00