[vlc-devel] commit: macosx: Don't do fancy stuff on 10.4. (Pierre d'Herbemont )

git version control git at videolan.org
Mon Aug 25 22:18:08 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Mon Aug 25 22:16:03 2008 +0200| [4f10b8ae5a7ed03065f313c1a1752dcab31b901e] | committer: Pierre d'Herbemont 

macosx: Don't do fancy stuff on 10.4.

Should fix the ppc crash.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4f10b8ae5a7ed03065f313c1a1752dcab31b901e
---

 modules/gui/macosx/embeddedwindow.m |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/modules/gui/macosx/embeddedwindow.m b/modules/gui/macosx/embeddedwindow.m
index 7559d87..c249bea 100644
--- a/modules/gui/macosx/embeddedwindow.m
+++ b/modules/gui/macosx/embeddedwindow.m
@@ -43,17 +43,13 @@
 
 - (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;
-    }
+    if(MACOS_VERSION < 10.5f)
+        return [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
+
+    windowStyle ^= NSTexturedBackgroundWindowMask;
     self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
-    if(!useTextured)
-    {
-        [self setContentBorderThickness:32.0 forEdge:NSMinYEdge];
-    }
+    [self setContentBorderThickness:32.0 forEdge:NSMinYEdge];
+
     return self;
 }
 




More information about the vlc-devel mailing list