diff options
Diffstat (limited to 'osdep/macos/mpv_helper.swift')
-rw-r--r-- | osdep/macos/mpv_helper.swift | 5 |
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), "") |