[MPlayer-cvslog] r35173 - trunk/libvo/vo_corevideo.m

reimar subversion at mplayerhq.hu
Thu Sep 13 20:07:15 CEST 2012


Author: reimar
Date: Thu Sep 13 20:07:14 2012
New Revision: 35173

Log:
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.

Modified:
   trunk/libvo/vo_corevideo.m

Modified: trunk/libvo/vo_corevideo.m
==============================================================================
--- trunk/libvo/vo_corevideo.m	Thu Sep 13 00:01:36 2012	(r35172)
+++ trunk/libvo/vo_corevideo.m	Thu Sep 13 20:07:14 2012	(r35173)
@@ -981,9 +981,8 @@ static int control(uint32_t request, voi
 	}
 	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);
 		}
 	}
 }


More information about the MPlayer-cvslog mailing list