summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Thum <simon.thum@gmx.de>2008-11-25 14:28:26 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2008-12-12 11:43:31 +1000
commit920b7622be4a68ebb5d8432f55c5362fbe964fce (patch)
tree465ff4fdd1f99c30e635b5f2b13059c96b958ac8
parentfbb57a2c54b141ccbb50833143b0b7cb2c4cb903 (diff)
xfree86: dump the ptraccel filter setup to the log on init.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
-rw-r--r--hw/xfree86/common/xf86Xinput.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index 6b92acb9c..fe6277291 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -126,9 +126,14 @@ ProcessVelocityConfiguration(char* devname, pointer list, DeviceVelocityPtr s){
if(tempf > 0.0f && tempi >= 1 && tempf2 >= 1.0f)
InitFilterChain(s, tempf, tempf2, tempi, 40);
- for(i = 0; i < tempi; i++)
- xf86Msg(X_CONFIG, "%s: (accel) filter stage %i: %.2f ms\n",
+ /* dump filter setup to log */
+ for(i = 0; i < MAX_VELOCITY_FILTERS; i++){
+ if(s->filters[i].rdecay <= 0)
+ break;
+
+ xf86Msg(X_CONFIG, "%s: (accel) filter stage %i: %.2f ms\n",
devname, i, 1.0f / (s->filters[i].rdecay));
+ }
tempf = xf86SetRealOption(list, "ConstantDeceleration", 1.0);
if(tempf > 1.0){