[MPlayer-cvslog] r36962 - trunk/libvo/vo_kva.c
komh
subversion at mplayerhq.hu
Sun Mar 2 10:06:46 CET 2014
Author: komh
Date: Sun Mar 2 10:06:46 2014
New Revision: 36962
Log:
kva: supports -mouse-movements
Modified:
trunk/libvo/vo_kva.c
Modified: trunk/libvo/vo_kva.c
==============================================================================
--- trunk/libvo/vo_kva.c Sun Mar 2 10:05:31 2014 (r36961)
+++ trunk/libvo/vo_kva.c Sun Mar 2 10:06:46 2014 (r36962)
@@ -508,6 +508,19 @@ static MRESULT EXPENTRY WndProc(HWND hwn
return (MRESULT)TRUE;
+ case WM_MOUSEMOVE:
+ {
+ int x = SHORT1FROMMP(mp1);
+ int y = SHORT2FROMMP(mp1);
+
+ // invert Y
+ y = (vo_dheight - 1) - y;
+
+ vo_mouse_movement(x, y);
+
+ break;
+ }
+
case WM_PAINT:
{
HPS hps;
More information about the MPlayer-cvslog
mailing list