[vlc-devel] commit: macosx: disable the SL-look for the main controller window until its artefacts are fixed ( Felix Paul Kühne )

git version control git at videolan.org
Sun May 3 17:41:04 CEST 2009


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun May  3 17:40:45 2009 +0200| [d1155aaeb0acb36a232640aa22a8b33407342179] | committer: Felix Paul Kühne 

macosx: disable the SL-look for the main controller window until its artefacts are fixed

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

 modules/gui/macosx/misc.m |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m
index ee673f6..4d77a38 100644
--- a/modules/gui/macosx/misc.m
+++ b/modules/gui/macosx/misc.m
@@ -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;
 }
 




More information about the vlc-devel mailing list