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

David Fuhrmann git at videolan.org
Sat Apr 21 19:29:34 CEST 2012


vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sat Apr 21 12:49:10 2012 +0200| [1dca657f2c6ca9efc29889a3f938d0ecaa1122d5] | 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.
(cherry picked from commit a0000ecec4d513724fd48f0d7df948fc0f389627)

Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>

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

 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