Commit 4f10b8ae authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Don't do fancy stuff on 10.4.

Should fix the ppc crash.
parent bb255df4
......@@ -43,17 +43,13 @@
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
{
BOOL useTextured = YES;
if([[NSWindow class] instancesRespondToSelector:@selector(setContentBorderThickness:forEdge:)])
{
useTextured = NO;
windowStyle ^= NSTexturedBackgroundWindowMask;
}
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];
if(!useTextured)
{
[self setContentBorderThickness:32.0 forEdge:NSMinYEdge];
}
[self setContentBorderThickness:32.0 forEdge:NSMinYEdge];
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