summaryrefslogtreecommitdiffstats
path: root/video/out/mac/window.swift
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-03-19 23:15:42 +0100
committerder richter <der.richter@gmx.de>2024-03-21 18:33:15 +0100
commit204e3f0df63d9e9ad93d8ece0b6dcfa4c5246fa7 (patch)
tree778a00a6393eca40db895bc20e4275bade21beb4 /video/out/mac/window.swift
parentf72dfd48d0d663f7bdcfba8cd3df691c76797907 (diff)
downloadmpv-204e3f0df63d9e9ad93d8ece0b6dcfa4c5246fa7.tar.bz2
mpv-204e3f0df63d9e9ad93d8ece0b6dcfa4c5246fa7.tar.xz
mac/option: rename option structs to properly represent their content
also optimise option cache setup.
Diffstat (limited to 'video/out/mac/window.swift')
-rw-r--r--video/out/mac/window.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/mac/window.swift b/video/out/mac/window.swift
index 5949aa1337..719ae9fb05 100644
--- a/video/out/mac/window.swift
+++ b/video/out/mac/window.swift
@@ -92,7 +92,7 @@ class Window: NSWindow, NSWindowDelegate {
title = com.title
minSize = NSMakeSize(160, 90)
collectionBehavior = .fullScreenPrimary
- ignoresMouseEvents = option.opts.cursor_passthrough
+ ignoresMouseEvents = option.vo.cursor_passthrough
delegate = self
if let cView = contentView {
@@ -143,7 +143,7 @@ class Window: NSWindow, NSWindowDelegate {
setFrame(frame, display: true)
}
- if Bool(option.opts.native_fs) {
+ if Bool(option.vo.native_fs) {
super.toggleFullScreen(sender)
} else {
if !isInFullscreen {
@@ -283,7 +283,7 @@ class Window: NSWindow, NSWindowDelegate {
}
func getFsAnimationDuration(_ def: Double) -> Double {
- let duration = option.macOpts.macos_fs_animation_duration
+ let duration = option.mac.macos_fs_animation_duration
if duration < 0 {
return def
} else {