Fix transformation of events supplying only a valuator for the y-coordinate.

ok matthieu@
This commit is contained in:
kettenis 2011-07-04 20:40:19 +00:00
parent 394dd9fc87
commit b1e129123c

View File

@ -1047,8 +1047,11 @@ transformAbsolute(DeviceIntPtr dev, int first, int num, int *valuators)
pixman_f_transform_point(&dev->transform, &p);
valuators[0] = lround(p.v[0]);
valuators[1] = lround(p.v[1]);
if (num >= 1 && first == 0)
*(valuators + 0) = lround(p.v[0]);
if (first <= 1 && num >= (2 - first))
*(valuators + 1 - first) = lround(p.v[1]);
}
/**