# HG changeset patch # User reimar # Date 1347559634 0 # Node ID d01a5c88bcc9f9f41ae4fb64e1a315364620d4e8 # Parent d698d80bb438e70d163d62c66ee6deebdfcac04b 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. diff -r d698d80bb438 -r d01a5c88bcc9 libvo/vo_corevideo.m --- 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); } } }