Commit 111f8992 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Attempt to really fix window look.

parent 421a70be
...@@ -44,26 +44,15 @@ ...@@ -44,26 +44,15 @@
- (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
{ {
if(MACOS_VERSION < 10.5f) if(MACOS_VERSION < 10.5f)
{ return [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
} else { #ifdef __ppc__
SEL theSelector; return [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
NSMethodSignature *aSignature; #endif
NSInvocation *anInvocation;
float f_value = 32.0f; windowStyle ^= NSTexturedBackgroundWindowMask;
NSRectEdge ouredge = NSMinYEdge; self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
[self setContentBorderThickness:32.0 forEdge:NSMinYEdge];
windowStyle ^= NSTexturedBackgroundWindowMask;
self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
theSelector = @selector(setContentBorderThickness:forEdge:);
aSignature = [VLCEmbeddedWindow instanceMethodSignatureForSelector:theSelector];
anInvocation = [NSInvocation invocationWithMethodSignature:aSignature];
[anInvocation setSelector:theSelector];
[anInvocation setTarget:self];
[anInvocation setArgument:&f_value atIndex:2]; /* FIXME it's actually CGFLoat */
[anInvocation setArgument:&ouredge atIndex:3];
}
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