Commit d1155aae authored by Felix Paul Kühne's avatar Felix Paul Kühne

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

parent 6ea16503
...@@ -406,22 +406,27 @@ static NSMutableArray *blackoutWindows = NULL; ...@@ -406,22 +406,27 @@ static NSMutableArray *blackoutWindows = NULL;
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask - (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask
backing:(NSBackingStoreType)backingType defer:(BOOL)flag backing:(NSBackingStoreType)backingType defer:(BOOL)flag
{ {
/* FIXME: this should enable the SnowLeopard window style, however, it leads to ugly artifacts
* needs some further investigation! -- feepk
BOOL b_useTextured = YES; BOOL b_useTextured = YES;
if( [[NSWindow class] instancesRespondToSelector:@selector(setContentBorderThickness:forEdge:)] ) if( [[NSWindow class] instancesRespondToSelector:@selector(setContentBorderThickness:forEdge:)] )
{ {
b_useTextured = NO; b_useTextured = NO;
styleMask ^= NSTexturedBackgroundWindowMask; styleMask ^= NSTexturedBackgroundWindowMask;
} } */
self = [super initWithContentRect:contentRect styleMask:styleMask //& ~NSTitledWindowMask self = [super initWithContentRect:contentRect styleMask:styleMask //& ~NSTitledWindowMask
backing:backingType defer:flag]; backing:backingType defer:flag];
[[VLCMain sharedInstance] updateTogglePlaylistState]; [[VLCMain sharedInstance] updateTogglePlaylistState];
/* FIXME: see above...
if(! b_useTextured ) if(! b_useTextured )
{ {
[self setContentBorderThickness:28.0 forEdge:NSMinYEdge]; [self setContentBorderThickness:28.0 forEdge:NSMinYEdge];
} }
*/
return self; return self;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment