impr: Use heuristic to determine backing scale factor on the web

This commit is contained in:
WerWolv
2025-02-15 22:30:06 +01:00
parent e232a2b33d
commit 54f3bc0262
2 changed files with 12 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ namespace hex {
} catch (e) {
return 1.0;
}
});
}) / ImHexApi::System::getBackingScaleFactor();
if (prevScaleFactor != 0 && prevScaleFactor != currScaleFactor) {
EventDPIChanged::post(prevScaleFactor, currScaleFactor);
resizeCanvas();