mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
and again
This commit is contained in:
parent
7f35d06ccb
commit
879e770e58
1 changed files with 4 additions and 0 deletions
|
@ -108,6 +108,7 @@ double getScaleFactor(const char* driverHint, void* windowHint) {
|
|||
if (driverHint==NULL) {
|
||||
return getMacDPIScale(NULL,false);
|
||||
} else if (strcmp(driverHint,"cocoa")==0) {
|
||||
#ifdef SDL_VIDEO_DRIVER_COCOA
|
||||
void* nsWindow=NULL;
|
||||
SDL_SysWMinfo wmInfo;
|
||||
if (windowHint!=NULL) {
|
||||
|
@ -117,7 +118,9 @@ double getScaleFactor(const char* driverHint, void* windowHint) {
|
|||
}
|
||||
}
|
||||
return getMacDPIScale(nsWindow,false);
|
||||
#endif
|
||||
} else if (strcmp(driverHint,"uikit")==0) {
|
||||
#ifdef SDL_VIDEO_DRIVER_UIKIT
|
||||
void* uiWindow=NULL;
|
||||
SDL_SysWMinfo wmInfo;
|
||||
if (windowHint!=NULL) {
|
||||
|
@ -129,6 +132,7 @@ double getScaleFactor(const char* driverHint, void* windowHint) {
|
|||
return getMacDPIScale(uiWindow,true);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__unix__) || defined(ANDROID)
|
||||
if (driverHint==NULL) {
|
||||
|
|
Loading…
Reference in a new issue