Changeset 5c0c38f4973b0a8100348b541dd81fd146444d2a

Show
Ignore:
Timestamp:
23/08/08 19:39:24 (3 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1219513164 +0200
git-parent:

[e8dda4b3223edf7da02ce44f66cddb53d07eafdd]

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

macosx: Don't use a textured Window if we have the leopard window style.

Proposed by Georg Seifert.

Files:

Legend:

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

    r2058e59 r5c0c38f  
    4242@implementation VLCEmbeddedWindow 
    4343 
     44- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation 
     45{ 
     46    BOOL useTextured = YES; 
     47    if([[NSWindow class] instancesRespondToSelector:@selector(setContentBorderThickness:forEdge:)]) 
     48    { 
     49        useTextured = NO; 
     50        windowStyle ^= NSTexturedBackgroundWindowMask; 
     51    } 
     52    self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation]; 
     53    if(!useTextured) 
     54    { 
     55        [self setContentBorderThickness:32.0 forEdge:NSMinYEdge]; 
     56    } 
     57    return self; 
     58} 
     59 
    4460- (void)awakeFromNib 
    4561{