[vlc-commits] macosx: fix lion fullscreen button in dark ui in some cases

David Fuhrmann git at videolan.org
Sat Apr 21 13:09:24 CEST 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sat Apr 21 12:49:10 2012 +0200| [a0000ecec4d513724fd48f0d7df948fc0f389627] | committer: 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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a0000ecec4d513724fd48f0d7df948fc0f389627
---

 modules/gui/macosx/MainWindowTitle.m |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/MainWindowTitle.m b/modules/gui/macosx/MainWindowTitle.m
index a737a42..40e86e0 100644
--- a/modules/gui/macosx/MainWindowTitle.m
+++ b/modules/gui/macosx/MainWindowTitle.m
@@ -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" );
 



More information about the vlc-commits mailing list