[vlc-commits] macosx vout: fix behaviour when macosx-video-autoresize is false

David Fuhrmann git at videolan.org
Mon Apr 16 11:09:12 CEST 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Mon Apr 16 10:24:36 2012 +0200| [0d6fe822a85332701ab5052e5a460fd37b5ee9cd] | committer: David Fuhrmann

macosx vout: fix behaviour when macosx-video-autoresize is false

Should be now the same as it would be in fullscreen.

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

 modules/video_output/macosx.m |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index e278113..2528c52 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -379,6 +379,13 @@ static int Control (vout_display_t *vd, int query, va_list ap)
             if (cfg_tmp.display.height < windowMinSize.height)
                 cfg_tmp.display.height = windowMinSize.height;
 
+            NSRect bounds = [sys->glView bounds];
+            if (!config_GetInt(vd, "macosx-video-autoresize"))
+            {
+                cfg_tmp.display.width = bounds.size.width;
+                cfg_tmp.display.height = bounds.size.height;
+            }
+
             vout_display_PlacePicture (&place, source, &cfg_tmp, false);
 
             if (query == VOUT_DISPLAY_CHANGE_SOURCE_CROP || query == VOUT_DISPLAY_CHANGE_SOURCE_ASPECT)



More information about the vlc-commits mailing list