From 5c3a0cc654d3043c0356324ee3716b4cdd3e043f Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 30 Jul 2022 11:12:33 +0200 Subject: [PATCH] ui: Fix window on macOS appearing really small #551 --- main/source/init/splash_window.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/main/source/init/splash_window.cpp b/main/source/init/splash_window.cpp index 9d0a6adeb..53272b72b 100644 --- a/main/source/init/splash_window.cpp +++ b/main/source/init/splash_window.cpp @@ -179,17 +179,8 @@ namespace hex::init { glfwGetWindowContentScale(this->m_window, &xScale, &yScale); auto meanScale = std::midpoint(xScale, yScale); - - // On Macs with a retina display (basically all modern ones we care about), the OS reports twice - // the actual monitor scale for some obscure reason. Get rid of this here so ImHex doesn't look - // extremely huge with native scaling on macOS. - #if defined(OS_MACOS) - meanScale /= 2; - #endif - - if (meanScale <= 0.0) { + if (meanScale <= 0.0) meanScale = 1.0; - } ImHexApi::System::impl::setGlobalScale(meanScale); ImHexApi::System::impl::setNativeScale(meanScale);