mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-30 07:37:16 +01:00
Relintai
bcf96a5840
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
|
||
---|---|---|
.. | ||
audio.worklet.js | ||
library_pandemonium_audio.js | ||
library_pandemonium_display.js | ||
library_pandemonium_fetch.js | ||
library_pandemonium_input.js | ||
library_pandemonium_javascript_singleton.js | ||
library_pandemonium_os.js | ||
library_pandemonium_runtime.js |