[vlc-devel] [PATCH 3/5] xcb/events: correct mouse coordinates for rotated movies
Matthias Keiser
matthias at tristan-inc.com
Fri Mar 14 01:09:51 CET 2014
To complete this the XVideo and VDPAU vout modules will have be updated too (adjust the vd->fmt). Couldn't test these via VirtualBox, sorry.
Am 14.03.2014 um 01:00 schrieb Matthias Keiser <matthias at tristan-inc.com>:
> ---
> modules/video_output/xcb/events.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/modules/video_output/xcb/events.c b/modules/video_output/xcb/events.c
> index efb3adb..d3ad55c 100644
> --- a/modules/video_output/xcb/events.c
> +++ b/modules/video_output/xcb/events.c
> @@ -232,12 +232,7 @@ static void HandleMotionNotify (vout_display_t *vd, xcb_connection_t *conn,
> if (place.width <= 0 || place.height <= 0)
> return;
>
> - const int x = vd->source.i_x_offset +
> - (int64_t)(ev->event_x - place.x) * vd->source.i_visible_width / place.width;
> - const int y = vd->source.i_y_offset +
> - (int64_t)(ev->event_y - place.y) * vd->source.i_visible_height/ place.height;
> -
> - vout_display_SendEventMouseMoved (vd, x, y);
> + vout_display_SendMouseMovedDisplayCoordinates(vd, ORIENT_NORMAL, ev->event_x, ev->event_y, &place);
> }
>
> static void HandleVisibilityNotify (vout_display_t *vd, bool *visible,
> --
> 1.8.3.4 (Apple Git-47)
>
More information about the vlc-devel
mailing list