diff --git a/Aerial.xcodeproj/project.pbxproj b/Aerial.xcodeproj/project.pbxproj index 2c502bb9..13c864b7 100644 --- a/Aerial.xcodeproj/project.pbxproj +++ b/Aerial.xcodeproj/project.pbxproj @@ -1169,7 +1169,7 @@ CODE_SIGN_IDENTITY = "Developer ID Application: Guillaume Louel (3L54M5L5KK)"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1.5.1beta3; + CURRENT_PROJECT_VERSION = 1.5.1beta4; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = 3L54M5L5KK; ENABLE_HARDENED_RUNTIME = YES; @@ -1177,7 +1177,7 @@ INSTALL_PATH = "$(HOME)/Library/Screen Savers"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.9; - MARKETING_VERSION = 1.5.1beta3; + MARKETING_VERSION = 1.5.1beta4; PRODUCT_BUNDLE_IDENTIFIER = com.johncoates.Aerial; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1198,7 +1198,7 @@ CODE_SIGN_IDENTITY = "Developer ID Application: Guillaume Louel (3L54M5L5KK)"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1.5.1beta3; + CURRENT_PROJECT_VERSION = 1.5.1beta4; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = 3L54M5L5KK; ENABLE_HARDENED_RUNTIME = YES; @@ -1206,7 +1206,7 @@ INSTALL_PATH = "$(HOME)/Library/Screen Savers"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.9; - MARKETING_VERSION = 1.5.1beta3; + MARKETING_VERSION = 1.5.1beta4; OTHER_CODE_SIGN_FLAGS = "--timestamp"; PRODUCT_BUNDLE_IDENTIFIER = com.johncoates.Aerial; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Aerial/Source/Controllers/PWC Tabs/PWC+Videos.swift b/Aerial/Source/Controllers/PWC Tabs/PWC+Videos.swift index 30e782d0..e77a04be 100644 --- a/Aerial/Source/Controllers/PWC Tabs/PWC+Videos.swift +++ b/Aerial/Source/Controllers/PWC Tabs/PWC+Videos.swift @@ -109,7 +109,13 @@ extension PreferencesWindowController { rightArrowKeyPlaysNextCheckbox.state = .off } - popupVideoFormat.selectItem(at: preferences.videoFormat!) + if #available(OSX 10.13, *) { + popupVideoFormat.selectItem(at: preferences.videoFormat!) + } else { + preferences.videoFormat = Preferences.VideoFormat.v1080pH264.rawValue + popupVideoFormat.selectItem(at: preferences.videoFormat!) + popupVideoFormat.isEnabled = false + } alternatePopupVideoFormat.selectItem(at: preferences.alternateVideoFormat!) diff --git a/Aerial/Source/Controllers/Preferences.swift b/Aerial/Source/Controllers/Preferences.swift index 67054873..4ccbac19 100644 --- a/Aerial/Source/Controllers/Preferences.swift +++ b/Aerial/Source/Controllers/Preferences.swift @@ -229,7 +229,7 @@ final class Preferences { defaultValues[.verticalMargin] = 0 defaultValues[.synchronizedMode] = false defaultValues[.aspectMode] = AspectMode.fill - defaultValues[.useHDR] = true + defaultValues[.useHDR] = false // Set today's date as default let dateFormatter = DateFormatter() diff --git a/Aerial/Source/Models/DisplayDetection.swift b/Aerial/Source/Models/DisplayDetection.swift index 4dfe7288..5a39bf87 100644 --- a/Aerial/Source/Models/DisplayDetection.swift +++ b/Aerial/Source/Models/DisplayDetection.swift @@ -19,7 +19,7 @@ class Screen: NSObject { var isMain: Bool var backingScaleFactor: CGFloat - init(id: CGDirectDisplayID, width: Int, height: Int, bottomLeftFrame: CGRect, isMain: Bool) { + init(id: CGDirectDisplayID, width: Int, height: Int, bottomLeftFrame: CGRect, isMain: Bool, backingScaleFactor: CGFloat) { self.id = id self.width = width self.height = height @@ -29,7 +29,7 @@ class Screen: NSObject { y: bottomLeftFrame.origin.y + CGFloat(height)) self.zeroedOrigin = CGPoint(x: 0, y: 0) self.isMain = isMain - self.backingScaleFactor = 1 + self.backingScaleFactor = backingScaleFactor } override var description: String { @@ -73,40 +73,42 @@ final class DisplayDetection: NSObject { _ = CGGetOnlineDisplayList(maxDisplays, &onlineDisplays, &displayCount) debugLog("\(displayCount) display(s) detected") + var mainID: CGDirectDisplayID? for currentDisplay in onlineDisplays[0..