diff --git a/main/source/init/splash_window.cpp b/main/source/init/splash_window.cpp index f690eeeba..863664712 100644 --- a/main/source/init/splash_window.cpp +++ b/main/source/init/splash_window.cpp @@ -22,6 +22,10 @@ #include #include +#if defined (OS_MACOS) + #include +#endif + using namespace std::literals::chrono_literals; namespace hex::init { @@ -205,7 +209,7 @@ namespace hex::init { meanScale = 1.0F; #if defined(OS_MACOS) - meanScale = std::max(meanScale / 2.0F, 1.0F); + meanScale /= NSScreen.mainScreen.backingScaleFactor; #endif ImHexApi::System::impl::setGlobalScale(meanScale); diff --git a/main/source/window/window.cpp b/main/source/window/window.cpp index c075bfbe2..3da81869d 100644 --- a/main/source/window/window.cpp +++ b/main/source/window/window.cpp @@ -726,7 +726,8 @@ namespace hex { io.ConfigFlags |= ImGuiConfigFlags_DockingEnable | ImGuiConfigFlags_NavEnableKeyboard; io.ConfigWindowsMoveFromTitleBarOnly = true; - io.FontGlobalScale = 1.0F; + + io.FontGlobalScale = ImHexApi::System::getGlobalScale(); if (glfwGetPrimaryMonitor() != nullptr) { auto sessionType = hex::getEnvironmentVariable("XDG_SESSION_TYPE");