mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Scaling on the web version
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user