pandemonium_engine/platform
Relintai bcf96a5840 Ported: 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.
-jamie-pate
562d7c616d
2022-09-16 21:15:54 +02:00
..
android Fix warning. 2022-09-16 19:37:29 +02:00
frt Also renamed the files. 2022-08-19 21:24:36 +02:00
frt_sdl Also renamed the files. 2022-08-19 21:24:36 +02:00
iphone Clean iOS platform config of long gone macro 2022-09-16 21:01:17 +02:00
javascript Ported: Improve performance of screen_get_dpi() in Javascript 2022-09-16 21:15:54 +02:00
osx Also renamed the files. 2022-08-19 21:24:36 +02:00
server Also renamed the files. 2022-08-19 21:24:36 +02:00
windows Also renamed the files. 2022-08-19 21:24:36 +02:00
x11 Also renamed the files. 2022-08-19 21:24:36 +02:00
register_platform_apis.h Clang format all files. 2022-03-18 19:00:13 +01:00
SCsub Added godot with all my currently used engine modules. 2022-03-15 13:29:32 +01:00