[vlc-commits] macosx: fix window sizing when entering lion fullscreen mode
David Fuhrmann
git at videolan.org
Fri Apr 20 19:12:42 CEST 2012
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri Apr 20 15:46:58 2012 +0200| [761eabba0b967a5c4e8ba3c890b1ab757c89e5c4] | committer: David Fuhrmann
macosx: fix window sizing when entering lion fullscreen mode
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=761eabba0b967a5c4e8ba3c890b1ab757c89e5c4
---
modules/gui/macosx/MainWindow.m | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index dd8e138..67028bc 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1120,6 +1120,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
if (![[VLCMain sharedInstance] activeVideoPlayback] || nativeVideoSize.width == 0. || nativeVideoSize.height == 0. || window != videoWindow)
return proposedFrameSize;
+ // needed when entering lion fullscreen mode
+ if( b_fullscreen )
+ return proposedFrameSize;
+
if( [[VLCCoreInteraction sharedInstance] aspectRatioIsLocked] )
{
NSRect videoWindowFrame = [videoWindow frame];
More information about the vlc-commits
mailing list