Commit 1a1ee38f authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Don't do fancy stuff on 10.4.

Should fix the ppc crash.

Cherry-picked from fcf7831c917acc2eff0bb20fb622839e22282699
parent 01b847b2
...@@ -41,6 +41,18 @@ ...@@ -41,6 +41,18 @@
@implementation VLCEmbeddedWindow @implementation VLCEmbeddedWindow
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
{
if(MACOS_VERSION < 10.5f)
return [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
windowStyle ^= NSTexturedBackgroundWindowMask;
self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
[self setContentBorderThickness:32.0 forEdge:NSMinYEdge];
return self;
}
- (void)awakeFromNib - (void)awakeFromNib
{ {
[self setDelegate: self]; [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