Commit 5c0c38f4 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Don't use a textured Window if we have the leopard window style.

Proposed by Georg Seifert.
parent e8dda4b3
......@@ -41,6 +41,22 @@
@implementation VLCEmbeddedWindow
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
{
BOOL useTextured = YES;
if([[NSWindow class] instancesRespondToSelector:@selector(setContentBorderThickness:forEdge:)])
{
useTextured = NO;
windowStyle ^= NSTexturedBackgroundWindowMask;
}
self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
if(!useTextured)
{
[self setContentBorderThickness:32.0 forEdge:NSMinYEdge];
}
return self;
}
- (void)awakeFromNib
{
[self setDelegate: 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