[vlc-commits] macosx: remove debug code and block Lion's fullscreen mode when disabling ' video-deco'

Felix Paul Kühne git at videolan.org
Thu May 17 20:09:05 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu May 17 20:08:35 2012 +0200| [5003db864a87d4d9a017939945df29b03bb76ac2] | committer: Felix Paul Kühne

macosx: remove debug code and block Lion's fullscreen mode when disabling 'video-deco'

Thanks to David Fuhrmann for the remarks

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

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

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index bad83d8..45f690b 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -128,11 +128,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
 
     /* setup the styled interface */
     b_video_deco = config_GetInt( VLCIntf, "video-deco" );
-    if (b_video_deco)
-        b_nonembedded = YES;
     b_nativeFullscreenMode = NO;
 #ifdef MAC_OS_X_VERSION_10_7
-    if( OSX_LION )
+    if( OSX_LION && b_video_deco )
         b_nativeFullscreenMode = config_GetInt( VLCIntf, "macosx-nativefullscreenmode" );
 #endif
     i_lastShownVolume = -1;
@@ -2667,6 +2665,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" );
 
     if (b_dark_interface || !b_video_deco)
     {
@@ -2680,12 +2679,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
 #endif
     }
 
-    b_video_deco = config_GetInt( VLCIntf, "video-deco" );
-    if (b_video_deco)
-        self = [super initWithContentRect:contentRect styleMask:styleMask
-                              backing:backingType defer:flag];
-    else
-        self = [super initWithContentRect:contentRect styleMask:styleMask
+    self = [super initWithContentRect:contentRect styleMask:styleMask
                                   backing:backingType defer:flag];
 
     /* we want to be moveable regardless of our style */



More information about the vlc-commits mailing list