diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-07 21:51:02 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-19 22:17:07 +1000 |
commit | 4318075140cc287871d3c3b9f777289ea4ffa23a (patch) | |
tree | ccc9afeb45afa4aff49d7de21ab24e5448f98856 /dix/getevents.c | |
parent | 9212948461c5e053abb61fff73ced4a00f138544 (diff) |
dix: store subpixel precision and send it down the wire to the client.
For the valuator data, not yet for root x/y and event x/y.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/getevents.c')
-rw-r--r-- | dix/getevents.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dix/getevents.c b/dix/getevents.c index b0bacbdbc..7aafc9828 100644 --- a/dix/getevents.c +++ b/dix/getevents.c @@ -174,10 +174,13 @@ set_valuators(DeviceIntPtr dev, DeviceEvent* event, int first_valuator, SetBit(event->valuators.mask, i); if (dev->valuator->mode == Absolute) SetBit(event->valuators.mode, i); + event->valuators.data_frac[first_valuator + i] = + dev->last.remainder[first_valuator + i] * (1 << 16) * (1 << 16); } memcpy(&event->valuators.data[first_valuator], valuators, num_valuators * sizeof(uint32_t)); + } void |