diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-09-10 15:05:58 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-09-10 15:06:38 +1000 |
commit | 43e270fb7a10da20ab89dd699839c1cb6df119b4 (patch) | |
tree | a5046fedeeb391c8c68b7a758513cec5307f1dc6 /src | |
parent | 4ca57716ca4d0bea7bcd9a52e88e5cf7064a9ad9 (diff) |
Use helper function for counting slots
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/evdev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/evdev.c b/src/evdev.c index a738cfa..209ea7e 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1455,8 +1455,7 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device, int want_scroll_axes) num_touches = pEvdev->mtdev->caps.slot.maximum - pEvdev->mtdev->caps.slot.minimum + 1; } else - num_touches = pEvdev->absinfo[ABS_MT_SLOT].maximum - - pEvdev->absinfo[ABS_MT_SLOT].minimum + 1; + num_touches = num_slots(pEvdev); if (!InitTouchClassDeviceStruct(device, num_touches, mode, num_mt_axes_total)) { |