[vlc-commits] macosx vout: shift the window above the lower screen bound when necessary

David Fuhrmann git at videolan.org
Wed Mar 21 17:59:35 CET 2012


vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Mar 21 17:51:34 2012 +0100| [616bd2623e692447bf6eb4480f68ac8835ab8cca] | committer: David Fuhrmann

macosx vout: shift the window above the lower screen bound when necessary
(cherry picked from commit d612827ce2cd628732ef4937a15ec5a1f851995e)

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

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

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

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 768410b..b41afa7 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -434,6 +434,8 @@ static int Control (vout_display_t *vd, int query, va_list ap)
                     new_frame.size.height = screenFrame.size.height;
                     new_frame.origin.y = screenFrame.origin.y;
                 }
+                if( new_frame.origin.y < screenFrame.origin.y )
+                    new_frame.origin.y = screenFrame.origin.y;
 
                 [sys->glView performSelectorOnMainThread:@selector(setWindowFrameWithValue:) withObject:[NSValue valueWithRect:new_frame] waitUntilDone:NO];
             }



More information about the vlc-commits mailing list