Mercurial > mplayer.hg
changeset 35070:ff4758e8cfba
Change geometry for corevideo vo to not take dock into account.
It makes the % placements behave non-intuitively, particularly
with an auto-hide dock where it would depend on whether the
dock is visible right when MPlayer starts up.
author | reimar |
---|---|
date | Tue, 11 Sep 2012 20:03:52 +0000 |
parents | 90a2e4fedfab |
children | e31eb09c681d |
files | libvo/vo_corevideo.m |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_corevideo.m Tue Sep 11 19:39:10 2012 +0000 +++ b/libvo/vo_corevideo.m Tue Sep 11 20:03:52 2012 +0000 @@ -531,10 +531,13 @@ //config window [window setContentSize:NSMakeSize(vo_dwidth, vo_dheight)]; - // Use visibleFrame to position the window taking the menu bar and dock into account. + // Do not use visibleFrame - taking the menu bar and dock into account + // would be nicer in principle, but currently only results in the window + // being placed strangely off-center since vo_dx/vo_dy calculation is + // not aware of it. // Also flip vo_dy since the screen origin is in the bottom left on OSX. update_screen_info(); - visibleFrame = [screen_handle visibleFrame]; + visibleFrame = [screen_handle frame]; [window setFrameTopLeftPoint:NSMakePoint( visibleFrame.origin.x + vo_dx, visibleFrame.origin.y + visibleFrame.size.height - vo_dy)];