Changeset e701a9334fc123f0055d728e0cc4ee6c9d48bd6c

Show
Ignore:
Timestamp:
27/08/08 20:13:21 (3 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1219860801 +0200
git-parent:

[f4ad7994761cd2463ad15254aa5569a444484c7c]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1219860780 +0200
Message:

macosx: Revert to the old texture window look.

Too much workaround to use it.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/macosx/embeddedwindow.m

    r7a01e29 re701a93  
    4242@implementation VLCEmbeddedWindow 
    4343 
    44 - (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation 
    45 { 
    46     if(MACOS_VERSION < 10.5f) 
    47     { 
    48         self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation]; 
    49     } else { 
    50         SEL theSelector; 
    51         NSMethodSignature *aSignature; 
    52         NSInvocation *anInvocation; 
    53         float f_value = 32.0f; 
    54         NSRectEdge ouredge = NSMinYEdge; 
    55  
    56         windowStyle ^= NSTexturedBackgroundWindowMask; 
    57         self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation]; 
    58  
    59         theSelector = @selector(setContentBorderThickness:forEdge:); 
    60         aSignature = [VLCEmbeddedWindow instanceMethodSignatureForSelector:theSelector]; 
    61         anInvocation = [NSInvocation invocationWithMethodSignature:aSignature]; 
    62         [anInvocation setSelector:theSelector]; 
    63         [anInvocation setTarget:self]; 
    64         [anInvocation setArgument:&f_value atIndex:2]; /* FIXME it's actually CGFLoat */ 
    65         [anInvocation setArgument:&ouredge atIndex:3]; 
    66     } 
    67     return self; 
    68 } 
    69  
    7044- (void)awakeFromNib 
    7145{