[PATCH fpit 7/8] Use GetMotionHistorySize() instead of driver-internal history

Peter Hutterer peter.hutterer at who-t.net
Wed Dec 1 19:31:32 PST 2010


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/xf86Fpit.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/xf86Fpit.c b/src/xf86Fpit.c
index cdcf8a8..c5e9d71 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;
 }
 
-- 
1.7.3.2



More information about the xorg-devel mailing list