Commit 1dca657f authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix lion fullscreen button in dark ui in some cases

Especially this is needed when fullscreen is true in video prefs, but video has not started yet.
(cherry picked from commit a0000ece)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent 502aba96
......@@ -174,7 +174,17 @@
else if (sender == o_green_btn)
[[self window] performZoom: sender];
else if (sender == o_fullscreen_btn)
[[VLCCoreInteraction sharedInstance] toggleFullscreen];
{
// set fs directly to true, as the vars can be already true in some configs
var_SetBool( pl_Get( VLCIntf ), "fullscreen", true );
vout_thread_t *p_vout = getVout();
if( p_vout )
{
var_SetBool( p_vout, "fullscreen", true );
vlc_object_release( p_vout );
}
}
else
msg_Err( VLCIntf, "unknown button action sender" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment