diff options
Diffstat (limited to 'video/out/mac')
-rw-r--r-- | video/out/mac/common.swift | 2 | ||||
-rw-r--r-- | video/out/mac/gl_layer.swift | 4 | ||||
-rw-r--r-- | video/out/mac/window.swift | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/video/out/mac/common.swift b/video/out/mac/common.swift index 66faf816d0..feb354261c 100644 --- a/video/out/mac/common.swift +++ b/video/out/mac/common.swift @@ -633,7 +633,7 @@ class Common: NSObject { let size = UnsafeBufferPointer(start: sizeData, count: 2) var rect = NSMakeRect(0, 0, CGFloat(size[0]), CGFloat(size[1])) DispatchQueue.main.async { - if let screen = self.window?.currentScreen, !Bool(self.mpv?.opts.hidpi_window_scale ?? 1) { + if let screen = self.window?.currentScreen, !Bool(self.mpv?.opts.hidpi_window_scale ?? true) { rect = screen.convertRectFromBacking(rect) } self.window?.updateSize(rect.size) diff --git a/video/out/mac/gl_layer.swift b/video/out/mac/gl_layer.swift index 6c48004f4f..79df1e9c80 100644 --- a/video/out/mac/gl_layer.swift +++ b/video/out/mac/gl_layer.swift @@ -269,12 +269,12 @@ class GLLayer: CAOpenGLLayer { glBase.insert(CGLPixelFormatAttribute(ver.rawValue), at: 1) var glFormat = [glBase] - if (ccb.libmpv.macOpts.cocoa_cb_10bit_context == 1) { + if ccb.libmpv.macOpts.cocoa_cb_10bit_context { glFormat += [glFormat10Bit] } glFormat += glFormatOptional - if (ccb.libmpv.macOpts.macos_force_dedicated_gpu == 0) { + if !ccb.libmpv.macOpts.macos_force_dedicated_gpu { glFormat += [glFormatAutoGPU] } diff --git a/video/out/mac/window.swift b/video/out/mac/window.swift index 8ae3a6549e..755d4d397f 100644 --- a/video/out/mac/window.swift +++ b/video/out/mac/window.swift @@ -137,7 +137,7 @@ class Window: NSWindow, NSWindowDelegate { setFrame(frame, display: true) } - if Bool(mpv?.opts.native_fs ?? 1) { + if Bool(mpv?.opts.native_fs ?? true) { super.toggleFullScreen(sender) } else { if !isInFullscreen { |