[MPlayer-dev-eng] [PATCH] support -mouse-movements on OS/2
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Wed Feb 26 19:37:15 CET 2014
On Sun, Feb 23, 2014 at 11:12:05PM +0900, KO Myung-Hun wrote:
> Hi/2.
>
> This patch add -mouse-movements support to OS/2.
>
> --
> KO Myung-Hun
>
> Using Mozilla SeaMonkey 2.7.2
> Under OS/2 Warp 4 for Korean with FixPak #15
> In VirtualBox v4.1.28 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
>
> Korean OS/2 User Community : http://www.ecomstation.co.kr
>
> Index: libvo/vo_kva.c
> ===================================================================
> --- libvo/vo_kva.c (revision 36900)
> +++ libvo/vo_kva.c (working copy)
> @@ -479,6 +573,32 @@
>
> return (MRESULT)TRUE;
>
> + case WM_MOUSEMOVE:
> + {
> + int x = SHORT1FROMMP(mp1);
> + int y = SHORT2FROMMP(mp1);
> +
> + RECTL rclDst;
> +
> + // get a current movie area
> + kvaAdjustDstRect(&m_int.kvas.rclSrcRect, &rclDst);
> +
> + // offset to movie area
> + x -= rclDst.xLeft;
> + y -= rclDst.yBottom;
> +
> + // rescale to image coordinate
> + x = x * vo_dwidth / (rclDst.xRight - rclDst.xLeft);
> + y = y * vo_dheight / (rclDst.yTop - rclDst.yBottom);
> +
This looks wrong, all of this should be handled by
rescale_input_coordinates in command.c
I suspect this might be related to the missing panscan
support and aspect handling that differs from normal
MPlayer.
More information about the MPlayer-dev-eng
mailing list