[PATCH weston 2/4] compositor: fix weston_output_transform_coordinate

Derek Foreman derekf at osg.samsung.com
Tue Mar 24 09:36:14 PDT 2015


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 <derekf at osg.samsung.com>
---
 src/compositor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor.c b/src/compositor.c
index 623dff3..7c229b6 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]);
-- 
2.1.4



More information about the wayland-devel mailing list