diff options
author | Pekka Paalanen <ppaalanen@gmail.com> | 2012-01-12 15:00:57 +0200 |
---|---|---|
committer | Pekka Paalanen <ppaalanen@gmail.com> | 2012-01-27 10:44:22 +0200 |
commit | 061b7471f1cca72c98ebec53d0e89e8166ed30f3 (patch) | |
tree | 6e0caa27e3e00316e59b98b1bd1e5bdd0ac7f7b7 /src/util.c | |
parent | 668ca37b19926e57b414497f3881f3939e804c0d (diff) |
compositor: drop inverse matrix from weston_transform
Remove the inverse matrix member from struct weston_transform. It is
easier (and probably faster, too) to create and store only forward
transformation matrices in a list, multiply them once, and then invert
the final matrix, rather than creating both forward and inverse
matrices, and multiplying both.
Add a stub for the 4x4 matrix inversion function.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -145,9 +145,6 @@ weston_zoom_frame(struct weston_animation *animation, es->alpha = zoom->spring.current * 255; if (es->alpha > 255) es->alpha = 255; - scale = 1.0 / zoom->spring.current; - weston_matrix_init(&zoom->transform.inverse); - weston_matrix_scale(&zoom->transform.inverse, scale, scale, scale); zoom->surface->transform.dirty = 1; |