diff options
author | Simon Thum <simon.thum@gmx.de> | 2010-02-16 09:57:03 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-06-07 11:54:38 +1000 |
commit | f07e1e1cbe199721f99c027843facf4e55172fa2 (patch) | |
tree | bcfb3170c5ed6b791a743889375a919ee687eebe | |
parent | 6e346388f822e90f61b92a2344e821880876a2ea (diff) |
Mulitply dix acceleration into synaptics maximum.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/synaptics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index 8b8b421..3841517 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -569,8 +569,8 @@ static float SynapticsAccelerationProfile(DeviceIntPtr dev, accelfct = velocity * para->accl; /* clip acceleration factor */ - if (accelfct > para->max_speed) - accelfct = para->max_speed; + if (accelfct > para->max_speed * acc) + accelfct = para->max_speed * acc; else if (accelfct < para->min_speed) accelfct = para->min_speed; |