Use xf86InitValuatorAxisStruct, the touch-specific version was dropped

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2011-12-15 08:55:32 +10:00
parent cf93a21df1
commit fed454192d

View File

@@ -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