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).
dev
Kristian Høgsberg 12 years ago
parent 383b60fad5
commit 9bcaaebfee
  1. 2
      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;

Loading…
Cancel
Save