Commit 8c59214e authored by David Fuhrmann's avatar David Fuhrmann

macosx: simplify style mask options on window creation

parent 28facd94
...@@ -89,13 +89,10 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -89,13 +89,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
b_dark_interface = config_GetInt(VLCIntf, "macosx-interfacestyle"); b_dark_interface = config_GetInt(VLCIntf, "macosx-interfacestyle");
if (b_dark_interface) { if (b_dark_interface) {
styleMask = NSBorderlessWindowMask;
#ifdef MAC_OS_X_VERSION_10_7 #ifdef MAC_OS_X_VERSION_10_7
if (!OSX_SNOW_LEOPARD) if (!OSX_SNOW_LEOPARD)
styleMask = NSBorderlessWindowMask | NSResizableWindowMask; styleMask |= NSResizableWindowMask;
else
styleMask = NSBorderlessWindowMask;
#else
styleMask = NSBorderlessWindowMask;
#endif #endif
} }
...@@ -2944,13 +2941,10 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -2944,13 +2941,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
b_dark_interface = config_GetInt(VLCIntf, "macosx-interfacestyle"); b_dark_interface = config_GetInt(VLCIntf, "macosx-interfacestyle");
if (b_dark_interface) { if (b_dark_interface) {
styleMask = NSBorderlessWindowMask;
#ifdef MAC_OS_X_VERSION_10_7 #ifdef MAC_OS_X_VERSION_10_7
if (!OSX_SNOW_LEOPARD) if (!OSX_SNOW_LEOPARD)
styleMask = NSBorderlessWindowMask | NSResizableWindowMask; styleMask |= NSResizableWindowMask;
else
styleMask = NSBorderlessWindowMask;
#else
styleMask = NSBorderlessWindowMask;
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment