ASDFGHJKL

This commit is contained in:
tildearrow 2023-08-31 01:43:19 -05:00
parent a882d7bcf2
commit 4ad1ae78fa
1 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@
#include "scaling.h"
#include "../ta-log.h"
#include <SDL.h>
#include <SDL_syswm.h>
#ifdef _WIN32
#include <windows.h>
@ -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;
}