[vlc-commits] macosx: fix issue which caused automatic video resizing even if disabled

David Fuhrmann git at videolan.org
Mon Nov 25 17:39:40 CET 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Mon Nov 25 17:38:01 2013 +0100| [b82bc83428aa33f2b5af2b4201f0926d2ebfe4ba] | committer: David Fuhrmann

macosx: fix issue which caused automatic video resizing even if disabled

close #9864

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

 modules/gui/macosx/VLCVoutWindowController.m |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/VLCVoutWindowController.m b/modules/gui/macosx/VLCVoutWindowController.m
index 595a27c..224f12a 100644
--- a/modules/gui/macosx/VLCVoutWindowController.m
+++ b/modules/gui/macosx/VLCVoutWindowController.m
@@ -187,10 +187,9 @@
     }
 
     if (!b_video_wallpaper) {
-        // set window size
-
+        // set (only!) window origin if specified
         if (b_nonembedded) {
-            NSRect window_rect = [o_new_video_window getWindowRectForProposedVideoViewSize:videoViewSize];
+            NSRect window_rect = [o_new_video_window frame];
             if (videoViewPosition.origin.x > 0.)
                 window_rect.origin.x = videoViewPosition.origin.x;
             if (videoViewPosition.origin.y > 0.)
@@ -212,6 +211,7 @@
             [o_new_video_window setFrameTopLeftPoint: top_left_point];
         }
 
+        // resize window
         [o_new_video_window setNativeVideoSize:videoViewSize];
 
         [o_new_video_window makeKeyAndOrderFront: self];



More information about the vlc-commits mailing list