From 304be3727e8e7742fd978cb86717705f7ea168b2 Mon Sep 17 00:00:00 2001 From: David Fuhrmann <david.fuhrmann@googlemail.com> Date: Thu, 2 May 2013 12:36:36 +0200 Subject: [PATCH] macosx: fix start in fullscreen setting Should be finally working now... close #8399 --- modules/gui/macosx/intf.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m index fea4ff754770..64930c4320fe 100644 --- a/modules/gui/macosx/intf.m +++ b/modules/gui/macosx/intf.m @@ -179,12 +179,12 @@ 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_GetBool(pl_Get(VLCIntf), "fullscreen")) { + if (var_InheritBool(VLCIntf, "fullscreen")) { int i_full = 1; SEL sel = @selector(setFullscreen:forWindow:); - NSInvocation *inv = [NSInvocation invocationWithMethodSignature:[[[VLCMain sharedInstance] voutController] methodSignatureForSelector:sel]]; - [inv setTarget:[[VLCMain sharedInstance] voutController]]; + NSInvocation *inv = [NSInvocation invocationWithMethodSignature:[o_vout_controller methodSignatureForSelector:sel]]; + [inv setTarget:o_vout_controller]; [inv setSelector:sel]; [inv setArgument:&i_full atIndex:2]; [inv setArgument:&p_wnd atIndex:3]; -- GitLab