From e232a2b33de1d629ce0c089c3cdb09004957954d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 15 Feb 2025 22:23:49 +0100 Subject: [PATCH] fix: Web build rendering --- lib/libimhex/source/api/imhex_api.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/libimhex/source/api/imhex_api.cpp b/lib/libimhex/source/api/imhex_api.cpp index 1746f7b27..1493880ea 100644 --- a/lib/libimhex/source/api/imhex_api.cpp +++ b/lib/libimhex/source/api/imhex_api.cpp @@ -648,13 +648,7 @@ namespace hex { return std::midpoint(xScale, yScale); } #elif defined(OS_WEB) - return EM_ASM_DOUBLE({ - try { - return window.devicePixelRatio; - } catch (e) { - return 1.0; - } - }); + return 1.0F; #else return 1.0F; #endif