diff options
author | Akemi <der.richter@gmx.de> | 2018-02-28 00:46:16 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-28 00:48:44 -0800 |
commit | aa974b2aa7b99ec94f66272a7ddd4bfc62438a2f (patch) | |
tree | a9da60bd11289da1a198a7578446e8359f321111 /osdep | |
parent | 38d614d8d668f1255f092f825ac4223f774f5991 (diff) | |
download | mpv-aa974b2aa7b99ec94f66272a7ddd4bfc62438a2f.tar.bz2 mpv-aa974b2aa7b99ec94f66272a7ddd4bfc62438a2f.tar.xz |
cocoa-cb: make fullscreen resize animation duration configurable
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/macosx_application.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m index fe117f7a1c..4bc8eec0eb 100644 --- a/osdep/macosx_application.m +++ b/osdep/macosx_application.m @@ -42,6 +42,7 @@ struct macos_opts { int macos_title_bar_style; + int macos_fs_animation_duration; }; #define OPT_BASE_STRUCT struct macos_opts @@ -50,9 +51,15 @@ const struct m_sub_options macos_conf = { OPT_CHOICE("macos-title-bar-style", macos_title_bar_style, 0, ({"dark", 0}, {"ultradark", 1}, {"light", 2}, {"mediumlight", 3}, {"auto", 4})), + OPT_CHOICE_OR_INT("macos-fs-animation-duration", + macos_fs_animation_duration, 0, 0, 1000, + ({"default", -1})), {0} }, .size = sizeof(struct macos_opts), + .defaults = &(const struct macos_opts){ + .macos_fs_animation_duration = -1, + }, }; // Whether the NSApplication singleton was created. If this is false, we are |