fix: Building on macOS

This commit is contained in:
WerWolv
2023-02-08 13:51:56 +01:00
parent 235a64deef
commit dd87dc7046
3 changed files with 12 additions and 8 deletions

View File

@@ -22,10 +22,6 @@
#include <future>
#include <numeric>
#if defined (OS_MACOS)
#include <AppKit/NSScreen.h>
#endif
using namespace std::literals::chrono_literals;
namespace hex::init {
@@ -209,7 +205,7 @@ namespace hex::init {
meanScale = 1.0F;
#if defined(OS_MACOS)
meanScale /= NSScreen.mainScreen.backingScaleFactor;
meanScale /= getBackingScaleFactorMacos();
#endif
ImHexApi::System::impl::setGlobalScale(meanScale);