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 @@ ...@@ -43,17 +43,13 @@
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation - (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
{ {
BOOL useTextured = YES; if(MACOS_VERSION < 10.5f)
if([[NSWindow class] instancesRespondToSelector:@selector(setContentBorderThickness:forEdge:)]) return [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
{
useTextured = NO; windowStyle ^= NSTexturedBackgroundWindowMask;
windowStyle ^= NSTexturedBackgroundWindowMask;
}
self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation]; 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; 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