[vlc-commits] macosx: fixed 'video-deco' and 'embedded-video' recognition when set on the command-line

Felix Paul Kühne git at videolan.org
Thu Aug 16 13:24:41 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Aug 16 13:23:44 2012 +0200| [e5d1d74558f5b116e10792e44e8aa85df0017fd2] | committer: Felix Paul Kühne

macosx: fixed 'video-deco' and 'embedded-video' recognition when set on the command-line

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

 modules/gui/macosx/MainWindow.m |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 9c1b02f..5fca070 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -167,7 +167,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
     BOOL b_splitviewShouldBeHidden = NO;
 
     /* setup the styled interface */
-    b_video_deco = config_GetInt( VLCIntf, "video-deco" );
+    b_video_deco = var_InheritBool( VLCIntf, "video-deco" );
     b_nativeFullscreenMode = NO;
 #ifdef MAC_OS_X_VERSION_10_7
     if( OSX_LION && b_video_deco )
@@ -1819,7 +1819,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
     }
     else
     {
-        if ((config_GetInt( VLCIntf, "embedded-video" ) || b_nativeFullscreenMode) && b_video_deco)
+        if ((var_InheritBool( VLCIntf, "embedded-video" ) || b_nativeFullscreenMode) && b_video_deco)
         {
             if ([o_video_view window] != self)
             {
@@ -2903,7 +2903,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
                   backing:(NSBackingStoreType)backingType defer:(BOOL)flag
 {
     b_dark_interface = config_GetInt( VLCIntf, "macosx-interfacestyle" );
-    b_video_deco = config_GetInt( VLCIntf, "video-deco" );
+    b_video_deco = var_InheritBool( VLCIntf, "video-deco" );
 
     if (b_dark_interface || !b_video_deco)
     {



More information about the vlc-commits mailing list