summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa_common.m
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-16 23:07:13 +0100
committerwm4 <wm4@nowhere>2015-01-16 23:07:13 +0100
commitfc524e8a0704670d2e7daad36e54b66daf93e3d8 (patch)
treefe835d5156bbef228eb6036a390271f40bc1d16f /video/out/cocoa_common.m
parent1883b7cc0c2844a903d51042861fca16eb3fad02 (diff)
downloadmpv-fc524e8a0704670d2e7daad36e54b66daf93e3d8.tar.bz2
mpv-fc524e8a0704670d2e7daad36e54b66daf93e3d8.tar.xz
command: unify handling of fullscreen and other VO flags
The "ontop" and "border" properties already used a common mp_property_vo_flag() function, and the corresponding VOCTRLs used the same conventions. "fullscreen" is pretty similar, but was handled slightly similar. Change how VOCTRL_FULLSCREEN behaves, and use the same helper function for "fullscreen" as the other flags.
Diffstat (limited to 'video/out/cocoa_common.m')
-rw-r--r--video/out/cocoa_common.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index db36e15c97..796a67c832 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -581,6 +581,8 @@ static void vo_cocoa_fullscreen(struct vo *vo)
if (s->embedded)
return;
+ opts->fullscreen = !opts->fullscreen;
+
vo_cocoa_update_screen_info(vo, NULL);
draw_changes_after_next_frame(vo);