[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:17:46 CEST 2008


vlc | branch: 0.9-bugfix | Pierre d'Herbemont <pdherbemont at videolan.org> | Mon Aug 25 22:16:03 2008 +0200| [1a1ee38f77687fc72881cfc5613cb15fe0955250] | committer: Pierre d'Herbemont 

macosx: Don't do fancy stuff on 10.4.

Should fix the ppc crash.

Cherry-picked from fcf7831c917acc2eff0bb20fb622839e22282699

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

 modules/gui/macosx/embeddedwindow.m |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/embeddedwindow.m b/modules/gui/macosx/embeddedwindow.m
index 1ecea7f..c249bea 100644
--- a/modules/gui/macosx/embeddedwindow.m
+++ b/modules/gui/macosx/embeddedwindow.m
@@ -41,6 +41,18 @@
 
 @implementation VLCEmbeddedWindow
 
+- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
+{
+    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];
+    [self setContentBorderThickness:32.0 forEdge:NSMinYEdge];
+
+    return self;
+}
+
 - (void)awakeFromNib
 {
     [self setDelegate: self];




More information about the vlc-devel mailing list