Commit d72b9383 authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

macosx: proper use of presenation options, removal of an redundant if

Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
(cherry picked from commit 5e732fcf3bb9758c8d78f03d9089a7f9be5949e9)
parent 468dc433
...@@ -1335,7 +1335,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1335,7 +1335,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (void)resizeWindow - (void)resizeWindow
{ {
if ( b_fullscreen || (OSX_LION && [NSApp presentationOptions] == NSApplicationPresentationFullScreen && b_nativeFullscreenMode) ) if ( b_fullscreen || (OSX_LION && [NSApp presentationOptions] & NSApplicationPresentationFullScreen && b_nativeFullscreenMode) )
return; return;
NSPoint topleftbase = NSMakePoint(0, [self frame].size.height); NSPoint topleftbase = NSMakePoint(0, [self frame].size.height);
......
...@@ -583,7 +583,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -583,7 +583,7 @@ static VLCMain *_o_sharedMainInstance = nil;
if (OSX_LION) if (OSX_LION)
{ {
if ([NSApp currentSystemPresentationOptions] == NSApplicationPresentationFullScreen) if ([NSApp currentSystemPresentationOptions] & NSApplicationPresentationFullScreen)
var_SetBool( p_playlist, "fullscreen", YES ); var_SetBool( p_playlist, "fullscreen", YES );
} }
......
...@@ -144,15 +144,12 @@ static NSMutableArray *blackoutWindows = NULL; ...@@ -144,15 +144,12 @@ static NSMutableArray *blackoutWindows = NULL;
[blackoutWindows addObject: blackoutWindow]; [blackoutWindows addObject: blackoutWindow];
[blackoutWindow release]; [blackoutWindow release];
if( [screen isMainScreen ] ) if( [screen isMainScreen] )
{ {
if ([screen isMainScreen]) if (OSX_LEOPARD)
{ SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar);
if (OSX_LEOPARD) else
SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar); [NSApp setPresentationOptions:(NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)];
else
[NSApp setPresentationOptions:(NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)];
}
} }
} }
} }
......
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