[vlc-commits] macosx: respect video-x and video-y (finally....)

Felix Paul Kühne git at videolan.org
Tue Apr 30 15:52:14 CEST 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Apr 30 15:52:05 2013 +0200| [b5e03709e9d8e4dd8aab20de80d91c7c71446fa4] | committer: Felix Paul Kühne

macosx: respect video-x and video-y (finally....)

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

 modules/gui/macosx/VLCVoutWindowController.m |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/gui/macosx/VLCVoutWindowController.m b/modules/gui/macosx/VLCVoutWindowController.m
index afabbb6..e209c4e 100644
--- a/modules/gui/macosx/VLCVoutWindowController.m
+++ b/modules/gui/macosx/VLCVoutWindowController.m
@@ -154,6 +154,11 @@
 
         if (b_nonembedded) {
             NSRect window_rect = [o_new_video_window getWindowRectForProposedVideoViewSize:videoViewSize];
+            if (videoViewPosition.origin.x > 0.)
+                window_rect.origin.x = videoViewPosition.origin.x;
+            if (videoViewPosition.origin.y > 0.)
+                window_rect.origin.y = videoViewPosition.origin.y;
+
             [o_new_video_window setFrame:window_rect display:YES];
         }
 



More information about the vlc-commits mailing list