diff --git a/lib/libimhex/include/hex/helpers/utils_macos.hpp b/lib/libimhex/include/hex/helpers/utils_macos.hpp index 81e88a0f7..070388df8 100644 --- a/lib/libimhex/include/hex/helpers/utils_macos.hpp +++ b/lib/libimhex/include/hex/helpers/utils_macos.hpp @@ -6,7 +6,7 @@ void openWebpageMacos(const char *url); bool isMacosSystemDarkModeEnabled(); - float getBackingScaleFactorMacos(); + float getBackingScaleFactor(); } diff --git a/lib/libimhex/source/helpers/utils_macos.m b/lib/libimhex/source/helpers/utils_macos.m index 2bd39a463..391771269 100644 --- a/lib/libimhex/source/helpers/utils_macos.m +++ b/lib/libimhex/source/helpers/utils_macos.m @@ -26,7 +26,7 @@ } } - float getBackingScaleFactorMacos(void) { + float getBackingScaleFactor(void) { return [[NSScreen mainScreen] backingScaleFactor]; } diff --git a/main/source/init/splash_window.cpp b/main/source/init/splash_window.cpp index d74824acb..e1caf3cf7 100644 --- a/main/source/init/splash_window.cpp +++ b/main/source/init/splash_window.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -205,7 +206,7 @@ namespace hex::init { meanScale = 1.0F; #if defined(OS_MACOS) - meanScale /= getBackingScaleFactorMacos(); + meanScale /= getBackingScaleFactor(); #endif ImHexApi::System::impl::setGlobalScale(meanScale);