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

David Fuhrmann git at videolan.org
Wed Mar 21 17:56:52 CET 2012


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

macosx vout: shift the window above the lower screen bound when necessary

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

 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 777a660..58961ea 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