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 b2bf67b61c
)
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
7f95d18397
commit
72c9bc64ff
|
@ -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
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user