summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2019-12-01 21:08:54 +0100
committerder richter <der.richter@gmx.de>2019-12-15 20:07:11 +0100
commitf21a980e374b46c978cec0d99145777653f4caca (patch)
tree54ba33824ad58c5a11b20ff6dfcb4753c0dc1340 /osdep
parentc8cc203735d73f62def2692d1027f45ac10c03db (diff)
downloadmpv-f21a980e374b46c978cec0d99145777653f4caca.tar.bz2
mpv-f21a980e374b46c978cec0d99145777653f4caca.tar.xz
cocoa-cb: update and add more options to use new options handling
this updates and add the maximized, minimized, keepaspect and ontop options to use the new options handling
Diffstat (limited to 'osdep')
-rw-r--r--osdep/macos/mpv_helper.swift5
1 files changed, 5 insertions, 0 deletions
diff --git a/osdep/macos/mpv_helper.swift b/osdep/macos/mpv_helper.swift
index 5e97470a09..00c34924e3 100644
--- a/osdep/macos/mpv_helper.swift
+++ b/osdep/macos/mpv_helper.swift
@@ -90,6 +90,11 @@ class MPVHelper: LogHelper {
m_config_cache_write_opt(optsCachePtr, UnsafeMutableRawPointer(&optsPtr.pointee.window_minimized))
}
+ func setConfigProperty(maximized: Bool) {
+ optsPtr.pointee.window_maximized = Int32(maximized)
+ m_config_cache_write_opt(optsCachePtr, UnsafeMutableRawPointer(&optsPtr.pointee.window_maximized))
+ }
+
func command(_ cmd: String) {
let cCmd = UnsafePointer<Int8>(strdup(cmd))
let mpvCmd = mp_input_parse_cmd(input, bstr0(cCmd), "")