[vlc-commits] fix bug where window resizes to full screen size when using native fullscreen mode

David Fuhrmann git at videolan.org
Mon Oct 8 20:31:29 CEST 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Mon Oct  8 20:15:49 2012 +0200| [167690dddfaf2f91b4c56c3816243bc36e3f5dd6] | committer: David Fuhrmann

fix bug where window resizes to full screen size when using native fullscreen mode

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=167690dddfaf2f91b4c56c3816243bc36e3f5dd6
---

 modules/gui/macosx/MainWindow.m |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index cdb2056..976faa3 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -811,9 +811,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
     BOOL b_videoPlayback = [[VLCMain sharedInstance] activeVideoPlayback];
 
     if (b_videoPlayback) {
-        frameBeforePlayback = [self frame];
+        if (!b_fullscreen)
+            frameBeforePlayback = [self frame];
     } else {
-        if (!b_nonembedded && !b_fullscreen)
+        if (!b_nonembedded && !b_fullscreen && frameBeforePlayback.size.width > 0 && frameBeforePlayback.size.height > 0)
             [[self animator] setFrame:frameBeforePlayback display:YES];
 
         [self makeFirstResponder: nil];



More information about the vlc-commits mailing list