]> git.sesse.net Git - vlc/commitdiff
macosx: disable the SL-look for the main controller window until its artefacts are...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 3 May 2009 15:40:45 +0000 (17:40 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 3 May 2009 15:41:03 +0000 (17:41 +0200)
modules/gui/macosx/misc.m

index ee673f65d0468bb5d84c084703abda5ef493d493..4d77a3824b94d39f8b7cfdbd67d1507ee8fff918 100644 (file)
@@ -406,22 +406,27 @@ static NSMutableArray *blackoutWindows = NULL;
 - (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask
     backing:(NSBackingStoreType)backingType defer:(BOOL)flag
 {
-    BOOL b_useTextured = YES;
+    /* FIXME: this should enable the SnowLeopard window style, however, it leads to ugly artifacts
+     *        needs some further investigation! -- feepk
+     BOOL b_useTextured = YES;
+
     if( [[NSWindow class] instancesRespondToSelector:@selector(setContentBorderThickness:forEdge:)] )
     {
         b_useTextured = NO;
         styleMask ^= NSTexturedBackgroundWindowMask;
-    }
+    } */
 
     self = [super initWithContentRect:contentRect styleMask:styleMask //& ~NSTitledWindowMask
     backing:backingType defer:flag];
 
     [[VLCMain sharedInstance] updateTogglePlaylistState];
 
+    /* FIXME: see above...
     if(! b_useTextured )
     {
         [self setContentBorderThickness:28.0 forEdge:NSMinYEdge];
     }
+    */
     return self;
 }