diff options
author | Benjamin Defnet <benjamin.r.defnet@intel.com> | 2009-06-10 21:35:48 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-07-26 13:56:57 -0700 |
commit | 72c9bc64ff86999a4643663e5699a6547a9e2997 (patch) | |
tree | 876583773b03c4b606e001feb43c24478b78e15d | |
parent | 7f95d18397757facafcba39e4613b2ed5047c5c4 (diff) |
randr: fix operation order so that rotation+transform works
The matrix multiply to combine rotation and projective transforms was being
done in the wrong order.
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit b2bf67b61c564a4b92a429ca9ad455403161f33a)
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | randr/rrtransform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/randr/rrtransform.c b/randr/rrtransform.c index 8bdff5ab6..06f62984d 100644 --- a/randr/rrtransform.c +++ b/randr/rrtransform.c @@ -251,10 +251,10 @@ RRTransformCompute (int x, #ifdef RANDR_12_INTERFACE if (rr_transform) { - if (!pixman_transform_multiply (transform, transform, &rr_transform->transform)) + if (!pixman_transform_multiply (transform, &rr_transform->transform, transform)) overflow = TRUE; - pixman_f_transform_multiply (f_transform, f_transform, &rr_transform->f_transform); - pixman_f_transform_multiply (f_inverse, &rr_transform->f_inverse, f_inverse); + pixman_f_transform_multiply (f_transform, &rr_transform->f_transform, f_transform); + pixman_f_transform_multiply (f_inverse, f_inverse, &rr_transform->f_inverse); } #endif /* |