projects
/
platform
/
upstream
/
libinput.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
touchpad: make tp_estimate_delta return fractions
[platform/upstream/libinput.git]
/
src
/
evdev-mt-touchpad.c
diff --git
a/src/evdev-mt-touchpad.c
b/src/evdev-mt-touchpad.c
index
4d4856f
..
b0520c7
100644
(file)
--- a/
src/evdev-mt-touchpad.c
+++ b/
src/evdev-mt-touchpad.c
@@
-163,7
+163,7
@@
tp_end_touch(struct tp_dispatch *tp, struct tp_touch *t, uint64_t time)
static double
tp_estimate_delta(int x0, int x1, int x2, int x3)
{
- return (x0 + x1 - x2 - x3) / 4;
+ return (x0 + x1 - x2 - x3) / 4
.0
;
}
void