[vlc-commits] macosx: fix window sizing when entering lion fullscreen mode

David Fuhrmann git at videolan.org
Sat Apr 21 19:29:33 CEST 2012


vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri Apr 20 15:46:58 2012 +0200| [15c74510b4511ccc7589fdd8c05999bea7137eca] | committer: David Fuhrmann

macosx: fix window sizing when entering lion fullscreen mode
(cherry picked from commit 761eabba0b967a5c4e8ba3c890b1ab757c89e5c4)

Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=15c74510b4511ccc7589fdd8c05999bea7137eca
---

 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 f243b2c..b61dca0 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