diff options
author | der richter <der.richter@gmx.de> | 2024-02-21 21:27:15 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-02-24 20:04:16 +0100 |
commit | 06ee5e9344d87108ac1c774e95dcb323b389e7b6 (patch) | |
tree | 5ebfbcf3d555b988e4aec53b1cc047f612a1471b /osdep | |
parent | 56b1078bfd46c1ff8c456050c8198016009837a0 (diff) | |
download | mpv-06ee5e9344d87108ac1c774e95dcb323b389e7b6.tar.bz2 mpv-06ee5e9344d87108ac1c774e95dcb323b389e7b6.tar.xz |
mac: code consistency changes
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/macos/swift_extensions.swift | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/osdep/macos/swift_extensions.swift b/osdep/macos/swift_extensions.swift index 127c568abe..c0a7cd95e4 100644 --- a/osdep/macos/swift_extensions.swift +++ b/osdep/macos/swift_extensions.swift @@ -22,7 +22,6 @@ extension NSDeviceDescriptionKey { } extension NSScreen { - public var displayID: CGDirectDisplayID { get { return deviceDescription[.screenNumber] as? CGDirectDisplayID ?? 0 @@ -31,7 +30,6 @@ extension NSScreen { } extension NSColor { - convenience init(hex: String) { let int = Int(hex.dropFirst(), radix: 16) ?? 0 let alpha = CGFloat((int >> 24) & 0x000000FF)/255 @@ -44,14 +42,12 @@ extension NSColor { } extension Bool { - init(_ int32: Int32) { self.init(int32 != 0) } } extension Int32 { - init(_ bool: Bool) { self.init(bool ? 1 : 0) } |