Oops. 62fc98c had crtc offsets applied backwards (fix from server-1.6-branch)

Crtc offsets are in screen space, not crtc space, and hence should be
applied relative to the screen->crtc transform, not the crtc->transform.

This fix was found in the 'cherry pick' of 62fc98c on server-1.6-branch,
clearly some new definition of 'cherry pick' that I am unaware of.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2009-02-25 11:08:01 -08:00
parent c090f5514d
commit 812e8d681a

View File

@ -270,8 +270,8 @@ RRTransformCompute (int x,
} }
else else
{ {
pixman_f_transform_translate (f_inverse, f_transform, -x, -y); pixman_f_transform_translate (f_transform, f_inverse, x, y);
if (!pixman_transform_translate (&inverse, transform, F(-x), F(-y))) if (!pixman_transform_translate (transform, &inverse, F(x), F(y)))
overflow = TRUE; overflow = TRUE;
if (overflow) if (overflow)
{ {