Signed-off-by: Peter Hutterer <[email protected]>
---
src/filter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/filter.c b/src/filter.c
index f8f9409..54ae397 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -493,8 +493,8 @@ touchpad_lenovo_x230_accel_profile(struct motion_filter
*filter,
speed_in *= TP_MAGIC_SLOWDOWN / TP_MAGIC_LOW_RES_FACTOR;
- s1 = min(1, speed_in * 5);
- s2 = 1 + (speed_in - threshold) * incline;
+ s1 = min(1, speed_in * 5 * 1000.0);
+ s2 = 1 + (speed_in * 1000.0 - threshold * 1000.0) * incline;
speed_out = min(max_accel, s2 > 1 ? s2 : s1);
--
2.4.3
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel