diff options
author | Keith Packard <keithp@keithp.com> | 2009-02-25 11:08:01 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-02-25 11:08:01 -0800 |
commit | 812e8d681a49b33d8748983843799ef692b8b148 (patch) | |
tree | d92e1ccbcf90b8d84ab11a830106ea8434600c9a /randr | |
parent | c090f5514d28e1602a6ebbe7c909e98a0e3374d7 (diff) |
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>
Diffstat (limited to 'randr')
-rw-r--r-- | randr/rrtransform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/randr/rrtransform.c b/randr/rrtransform.c index e5e9438e5..8bdff5ab6 100644 --- a/randr/rrtransform.c +++ b/randr/rrtransform.c @@ -270,8 +270,8 @@ RRTransformCompute (int x, } else { - pixman_f_transform_translate (f_inverse, f_transform, -x, -y); - if (!pixman_transform_translate (&inverse, transform, F(-x), F(-y))) + pixman_f_transform_translate (f_transform, f_inverse, x, y); + if (!pixman_transform_translate (transform, &inverse, F(x), F(y))) overflow = TRUE; if (overflow) { |