summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-15 08:55:32 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-15 08:55:32 +1000
commitfed454192ddc4ad94226040c657deb6abea3df88 (patch)
treea8a90db034ea56d63d421d866b7f854bd2b952ff /src
parentcf93a21df1dd66118d3a1f5a0769d48f317de749 (diff)
Use xf86InitValuatorAxisStruct, the touch-specific version was dropped
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 760f3ce..8adfefd 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1275,11 +1275,12 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device)
if (pEvdev->absinfo[axis].resolution)
resolution = pEvdev->absinfo[axis].resolution * 1000;
- xf86InitTouchValuatorAxisStruct(device, axnum,
- atoms[axnum + pEvdev->num_vals],
- pEvdev->absinfo[axis].minimum,
- pEvdev->absinfo[axis].maximum,
- pEvdev->absinfo[axis].resolution);
+ xf86InitValuatorAxisStruct(device, axnum,
+ atoms[axnum + pEvdev->num_vals],
+ pEvdev->absinfo[axis].minimum,
+ pEvdev->absinfo[axis].maximum,
+ resolution, 0, resolution,
+ Absolute);
}
#endif