fix: Building on macOS

This commit is contained in:
WerWolv
2023-02-08 13:51:56 +01:00
parent 235a64deef
commit dd87dc7046
3 changed files with 12 additions and 8 deletions

View File

@@ -4,6 +4,7 @@
#include <ApplicationServices/ApplicationServices.h>
#include <Foundation/NSUserDefaults.h>
#include <Foundation/Foundation.h>
#include <AppKit/NSScreen.h>
#include <string.h>
#include <stdlib.h>
@@ -25,4 +26,8 @@
}
}
float getBackingScaleFactorMacos(void) {
return [[NSScreen mainScreen] backingScaleFactor];
}
#endif