Mercurial > mplayer.hg
changeset 35079:d01a5c88bcc9
corevideo: Simplify mouse handling.
Handling of borders etc. should not be done inside the vo.
Neither the old nor the new version will be completely correct,
but the new version is simpler and will work correctly after
fixing a few other parts of the code/making -keepaspect behave
consistently between corevideo and other vos.
author | reimar |
---|---|
date | Thu, 13 Sep 2012 18:07:14 +0000 |
parents | d698d80bb438 |
children | a10c7a7a9232 |
files | libvo/vo_corevideo.m |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_corevideo.m Wed Sep 12 22:01:36 2012 +0000 +++ b/libvo/vo_corevideo.m Thu Sep 13 18:07:14 2012 +0000 @@ -981,9 +981,8 @@ } if (enable_mouse_movements && !isRootwin) { NSPoint p =[self convertPoint:[theEvent locationInWindow] fromView:nil]; - if ([self mouse:p inRect:textureFrame]) { - vo_mouse_movement(vo_fs ? p.x : p.x - textureFrame.origin.x, - vo_fs ? [self frame].size.height - p.y : NSMaxY(textureFrame) - p.y); + if ([self mouse:p inRect:[self frame]]) { + vo_mouse_movement(p.x, [self frame].size.height - p.y); } } }