Commit 01b847b2 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

macosx: This fixes running VLC on PPC and reverts...

macosx: This fixes running VLC on PPC and reverts [5c0c38f4]. Too bad, but we cannot account for every interface change that Apple makes if it starts crashing our application on PPC.
parent 4e837d4b
...@@ -41,22 +41,6 @@ ...@@ -41,22 +41,6 @@
@implementation VLCEmbeddedWindow @implementation VLCEmbeddedWindow
- (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;
}
self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
if(!useTextured)
{
[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