diff --git a/dist/web/source/wasm-config.js b/dist/web/source/wasm-config.js index e78805b86..39a04ea8c 100644 --- a/dist/web/source/wasm-config.js +++ b/dist/web/source/wasm-config.js @@ -271,8 +271,14 @@ function js_resizeCanvas() { canvas.top = document.documentElement.clientTop; canvas.left = document.documentElement.clientLeft; - canvas.width = Math.min(document.documentElement.clientWidth, window.innerWidth || 0) * window.devicePixelRatio; - canvas.height = Math.min(document.documentElement.clientHeight, window.innerHeight || 0) * window.devicePixelRatio; + + let width = Math.min(document.documentElement.clientWidth, window.innerWidth || 0); + let height = Math.min(document.documentElement.clientHeight, window.innerHeight || 0); + + canvas.style.width = width + "px"; + canvas.style.height = height + "px"; + canvas.width = width * window.devicePixelRatio; + canvas.height = height * window.devicePixelRatio; } // Prevent some default browser shortcuts from preventing ImHex ones to work diff --git a/main/gui/source/init/splash_window.cpp b/main/gui/source/init/splash_window.cpp index 519257e00..7ac7f121c 100644 --- a/main/gui/source/init/splash_window.cpp +++ b/main/gui/source/init/splash_window.cpp @@ -513,10 +513,6 @@ namespace hex::init { if (meanScale <= 0.0F) meanScale = 1.0F; - #if defined(OS_WEB) - meanScale = 1.0F; - #endif - #if !defined(OS_LINUX) meanScale /= hex::ImHexApi::System::getBackingScaleFactor(); #endif