[vlc-commits] macosx: fix start in fullscreen (fixes #8770)
David Fuhrmann
git at videolan.org
Wed Jun 12 21:02:40 CEST 2013
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Jun 12 20:42:18 2013 +0200| [ebe95801864942d2071a840eda1a96a6f2e0bbf5] | committer: David Fuhrmann
macosx: fix start in fullscreen (fixes #8770)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ebe95801864942d2071a840eda1a96a6f2e0bbf5
---
modules/gui/macosx/intf.m | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index fc8e990..9ecdcf8 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -179,7 +179,13 @@ int WindowOpen(vout_window_t *p_wnd, const vout_window_cfg_t *cfg)
p_wnd->handle.nsobject = videoView;
// TODO: find a cleaner way for "start in fullscreen"
- if (var_InheritBool(VLCIntf, "fullscreen")) {
+ // either prefs settings, or fullscreen button was pressed before
+ if (var_InheritBool(VLCIntf, "fullscreen") || var_GetBool(pl_Get(VLCIntf), "fullscreen")) {
+
+ // this is not set when we start in fullscreen because of
+ // fullscreen settings in video prefs the second time
+ var_SetBool(p_wnd->p_parent, "fullscreen", 1);
+
int i_full = 1;
SEL sel = @selector(setFullscreen:forWindow:);
More information about the vlc-commits
mailing list