]> git.sesse.net Git - vlc/commitdiff
macosx: Revert to the old texture window look.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 27 Aug 2008 18:13:00 +0000 (20:13 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 27 Aug 2008 18:13:21 +0000 (20:13 +0200)
Too much workaround to use it.

modules/gui/macosx/embeddedwindow.m

index 318f6840890cf2e0dd92e8929abba029ccee5500..1ecea7f39ee42940ef57f481996b1e4a0ac1c596 100644 (file)
 
 @implementation VLCEmbeddedWindow
 
-- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
-{
-    if(MACOS_VERSION < 10.5f)
-    {
-        self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
-    } else {
-        SEL theSelector;
-        NSMethodSignature *aSignature;
-        NSInvocation *anInvocation;
-        float f_value = 32.0f;
-        NSRectEdge ouredge = 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;
-}
-
 - (void)awakeFromNib
 {
     [self setDelegate: self];