why does this happen

This commit is contained in:
tildearrow 2023-08-31 01:59:37 -05:00
parent 43ef57390a
commit 7f35d06ccb
1 changed files with 2 additions and 2 deletions

View File

@ -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);