From 4ad1ae78fa98c867cafbfe5e2e59aec807ef1f75 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 31 Aug 2023 01:43:19 -0500 Subject: [PATCH] ASDFGHJKL --- src/gui/scaling.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/scaling.cpp b/src/gui/scaling.cpp index f122aac8..73709283 100644 --- a/src/gui/scaling.cpp +++ b/src/gui/scaling.cpp @@ -21,6 +21,7 @@ #include "scaling.h" #include "../ta-log.h" #include +#include #ifdef _WIN32 #include @@ -110,7 +111,7 @@ double getScaleFactor(const char* driverHint, void* windowHint) { void* nsWindow=NULL; SDL_SysWMinfo wmInfo; if (windowHint!=NULL) { - SDL_VERSION(&info.version) + SDL_VERSION(&wmInfo.version) if (SDL_GetWindowWMInfo((SDL_Window*)windowHint,&wmInfo)==SDL_TRUE) { nsWindow=wmInfo.cocoa.window; } @@ -120,7 +121,7 @@ double getScaleFactor(const char* driverHint, void* windowHint) { void* uiWindow=NULL; SDL_SysWMinfo wmInfo; if (windowHint!=NULL) { - SDL_VERSION(&info.version) + SDL_VERSION(&wmInfo.version) if (SDL_GetWindowWMInfo((SDL_Window*)windowHint,&wmInfo)==SDL_TRUE) { uiWindow=wmInfo.cocoa.window; }