mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
sys: One more attempt to fix macOS scaling issues
This commit is contained in:
@@ -22,6 +22,10 @@
|
||||
#include <future>
|
||||
#include <numeric>
|
||||
|
||||
#if defined (OS_MACOS)
|
||||
#include <AppKit/NSScreen.h>
|
||||
#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);
|
||||
|
||||
Reference in New Issue
Block a user