diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-12 17:44:19 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-12 17:44:19 +1000 |
commit | 01a029e597a25f10d00accafb04d72dad39e82cf (patch) | |
tree | 5039c7e88a69265b9be2282e8c6ea6eba42e703d /src/XExtInt.c | |
parent | 6c1d6174a0ba33ff377cb74adf6c0bbe0279f93b (diff) |
parse subpixels
Diffstat (limited to 'src/XExtInt.c')
-rw-r--r-- | src/XExtInt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c index 170394b..53edf97 100644 --- a/src/XExtInt.c +++ b/src/XExtInt.c @@ -916,7 +916,10 @@ wireToDeviceEvent(xXIDeviceEvent *in, XIDeviceEvent* out) len = count_bits(out->valuators->mask, out->valuators->mask_len); values = (FP3232*)ptr; for (i = 0; i < len; i++, values++) - out->valuators->values[i] = values->integral; /*XXX: frac part */ + { + out->valuators->values[i] = values->integral; + out->valuators->values[i] += ((double)values->frac / (1 << 16) / (1 << 16)); + } out->mods = malloc(sizeof(XIModifierState)); out->group = malloc(sizeof(XIGroupState)); |