summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-12-02 12:59:55 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-12-06 10:03:34 +1000
commitcfbe606a376eacf17bc998140bea75726ea21373 (patch)
tree3a5d764c89b5cac9f014e5e4057ad1f6e5666874
parent3c4795fbe5ef6444a890e2baf8edf0e01530cea2 (diff)
Use GetMotionHistorySize() instead of driver-internal history
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Cyril Brulebois <kibi@debian.org>
-rw-r--r--src/xf86Fpit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xf86Fpit.c b/src/xf86Fpit.c
index 0f7f8ff..f508317 100644
--- a/src/xf86Fpit.c
+++ b/src/xf86Fpit.c
@@ -437,7 +437,7 @@ static Bool xf86FpitControl(DeviceIntPtr dev, int mode)
}
if (InitValuatorClassDeviceStruct(dev, 2, axis_labels,
- pInfo->history_size, Absolute) == FALSE) {
+ GetMotionHistorySize(), Absolute) == FALSE) {
ErrorF("Unable to allocate Fpit touchscreen ValuatorClassDeviceStruct\n");
return !Success;
}
@@ -545,7 +545,6 @@ static InputInfoPtr xf86FpitAllocate(InputDriverPtr drv)
pInfo->dev = NULL;
pInfo->private = priv;
pInfo->type_name = "Fujitsu Stylistic";
- pInfo->history_size = 0;
return pInfo;
}