[vlc-commits] macosx: fixed broken appearance of the main window in case it is linked against the 10 .7 SDK but run on OS X 10.6

Felix Paul Kühne git at videolan.org
Sun Jan 29 19:07:26 CET 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Jan 29 13:32:28 2012 +0100| [f8db06d317077870b4081a8467ba0d6c4378ae19] | committer: Jean-Baptiste Kempf

macosx: fixed broken appearance of the main window in case it is linked against the 10.7 SDK but run on OS X 10.6
(cherry picked from commit 4a646775222b9645f6d3a522654aa89542051116)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/macosx/MainWindow.m |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 6875bd9..49daf3d 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -75,7 +75,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
     if (b_dark_interface)
     {
 #ifdef MAC_OS_X_VERSION_10_7
-        styleMask = NSBorderlessWindowMask | NSResizableWindowMask;
+        if (OSX_LION)
+            styleMask = NSBorderlessWindowMask | NSResizableWindowMask;
+        else
+            styleMask = NSBorderlessWindowMask;
 #else
         styleMask = NSBorderlessWindowMask;
 #endif



More information about the vlc-commits mailing list