Commit 15c74510 authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix window sizing when entering lion fullscreen mode

(cherry picked from commit 761eabba0b967a5c4e8ba3c890b1ab757c89e5c4)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent 068886d2
...@@ -1120,6 +1120,10 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1120,6 +1120,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
if (![[VLCMain sharedInstance] activeVideoPlayback] || nativeVideoSize.width == 0. || nativeVideoSize.height == 0. || window != videoWindow) if (![[VLCMain sharedInstance] activeVideoPlayback] || nativeVideoSize.width == 0. || nativeVideoSize.height == 0. || window != videoWindow)
return proposedFrameSize; return proposedFrameSize;
// needed when entering lion fullscreen mode
if( b_fullscreen )
return proposedFrameSize;
if( [[VLCCoreInteraction sharedInstance] aspectRatioIsLocked] ) if( [[VLCCoreInteraction sharedInstance] aspectRatioIsLocked] )
{ {
NSRect videoWindowFrame = [videoWindow frame]; NSRect videoWindowFrame = [videoWindow frame];
......
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