From acb5ef561d124cc9ccfd6ded2913b709b6a234d9 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 16 Feb 2025 21:55:38 +0100 Subject: [PATCH] fix: Wrong native scaling on Wayland --- main/gui/source/init/splash_window.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/gui/source/init/splash_window.cpp b/main/gui/source/init/splash_window.cpp index 3b58de21f..ffec4b44a 100644 --- a/main/gui/source/init/splash_window.cpp +++ b/main/gui/source/init/splash_window.cpp @@ -492,7 +492,9 @@ namespace hex::init { meanScale = 1.0F; #endif - meanScale /= hex::ImHexApi::System::getBackingScaleFactor(); + #if !defined(OS_LINUX) + meanScale /= hex::ImHexApi::System::getBackingScaleFactor(); + #endif ImHexApi::System::impl::setGlobalScale(meanScale); ImHexApi::System::impl::setNativeScale(meanScale);