If core motion history is required, scale back to screen coords and INT16.

This commit is contained in:
Peter Hutterer
2008-05-26 16:35:23 +09:30
parent 0b88510069
commit 1883485edd
6 changed files with 51 additions and 15 deletions

View File

@@ -135,7 +135,7 @@ ProcXGetDeviceMotionEvents(ClientPtr client)
size = sizeof(Time) + (axes * sizeof(INT32));
rep.nEvents = GetMotionHistory(dev, (xTimecoord **) &coords,/* XXX */
start.milliseconds, stop.milliseconds,
(ScreenPtr) NULL);
(ScreenPtr) NULL, FALSE);
}
if (rep.nEvents > 0) {
length = (rep.nEvents * size + 3) >> 2;