From 7f35d06ccb1c319d5244f15cedfbc50c1b59cbda Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 31 Aug 2023 01:59:37 -0500 Subject: [PATCH] why does this happen --- src/gui/scaling.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/scaling.cpp b/src/gui/scaling.cpp index 73709283..f46ccb69 100644 --- a/src/gui/scaling.cpp +++ b/src/gui/scaling.cpp @@ -113,7 +113,7 @@ double getScaleFactor(const char* driverHint, void* windowHint) { if (windowHint!=NULL) { SDL_VERSION(&wmInfo.version) if (SDL_GetWindowWMInfo((SDL_Window*)windowHint,&wmInfo)==SDL_TRUE) { - nsWindow=wmInfo.cocoa.window; + nsWindow=wmInfo.info.cocoa.window; } } return getMacDPIScale(nsWindow,false); @@ -123,7 +123,7 @@ double getScaleFactor(const char* driverHint, void* windowHint) { if (windowHint!=NULL) { SDL_VERSION(&wmInfo.version) if (SDL_GetWindowWMInfo((SDL_Window*)windowHint,&wmInfo)==SDL_TRUE) { - uiWindow=wmInfo.cocoa.window; + uiWindow=wmInfo.info.uikit.window; } } return getMacDPIScale(uiWindow,true);