fix: Scaling on the web version

This commit is contained in:
WerWolv
2025-02-15 21:26:03 +01:00
parent 19f925c60b
commit 73a3b217a4
2 changed files with 8 additions and 3 deletions

View File

@@ -161,8 +161,7 @@ namespace hex {
const float currScaleFactor = MAIN_THREAD_EM_ASM_DOUBLE({
try {
// Take square root of scaling to counter scaling applied by Browser
return Math.sqrt(window.devicePixelRatio);
return window.devicePixelRatio;
} catch (e) {
return 1.0;
}