summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-02-28 14:56:43 -0500
committerKristian Høgsberg <krh@bitplanet.net>2013-02-28 14:57:00 -0500
commit9bcaaebfee3191880a3ad26f393d9ffc9b66bbab (patch)
tree466f697b6f9e38c30a88223d75cf147067cc1775
parent383b60fad5b77ad2d2e84a37fc9f660228e51e89 (diff)
compositor: Make sure surface->transform.inverse is a complete matrix
We never init this, so we need to copy over the position matrix and then overwrite the translation entries to make sure we have a valid matrix. Thanks to Pekka for spotting this (twice).
-rw-r--r--src/compositor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor.c b/src/compositor.c
index eb0195a2..6afc4912 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -603,7 +603,7 @@ weston_surface_update_transform_disable(struct weston_surface *surface)
surface->transform.matrix = surface->transform.position.matrix;
- surface->transform.inverse.type = WESTON_MATRIX_TRANSFORM_TRANSLATE;
+ surface->transform.inverse = surface->transform.position.matrix;
surface->transform.inverse.d[12] = -surface->geometry.x;
surface->transform.inverse.d[13] = -surface->geometry.y;