mac tray icon opt

This commit is contained in:
rustdesk
2023-01-11 15:35:35 +08:00
parent 8e3e8ab5bc
commit 3cbcd2e46a
10 changed files with 33 additions and 9 deletions

View File

@@ -34,3 +34,9 @@ extern "C" bool InputMonitoringAuthStatus(bool prompt) {
}
return false;
}
extern "C" float BackingScaleFactor() {
NSScreen* s = [NSScreen mainScreen];
if (s) return [s backingScaleFactor];
return 1;
}