From 67a18b99425e4a30dfdeb5551de007f42ffcb20e Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Tue, 24 Mar 2015 11:36:14 -0500 Subject: [PATCH] compositor: fix weston_output_transform_coordinate weston_output_transform_coordinate() was supposed to convert from device co-ordinates to global co-ordinates. Commit 0f67941c broke that by converting from global to device instead, which just magically works ok for single untransformed outputs (where the transformation is identity) Signed-off-by: Derek Foreman Reviewed-by: Bryce Harrington Reviewed-by: Pekka Paalanen --- src/compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index 623dff31..7c229b69 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -4135,7 +4135,7 @@ weston_output_transform_coordinate(struct weston_output *output, 0.0, 1.0 } }; - weston_matrix_transform(&output->matrix, &p); + weston_matrix_transform(&output->inverse_matrix, &p); *x = wl_fixed_from_double(p.f[0] / p.f[3]); *y = wl_fixed_from_double(p.f[1] / p.f[3]);