vlc | branch: master | Felix Paul Kühne <[email protected]> | Sun Jan 29 
13:32:28 2012 +0100| [4a646775222b9645f6d3a522654aa89542051116] | committer: 
Felix Paul Kühne

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

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

 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 1aba7e7..a2415e7 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

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to