touchpad: change manual calculations of dimensions to helper functions
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 15 Jul 2016 01:31:07 +0000 (11:31 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 31 Jul 2016 21:11:20 +0000 (07:11 +1000)
commitc543b4a91ae379f4898069e0f1cbad9541729dfd
tree20cb8fb2f81e5b486600bffe2785c547c081433e
parentb1c51ee9d9825a92daf1d81d8645de436f5ade95
touchpad: change manual calculations of dimensions to helper functions

Wherever we use an absolute size in mm on the touchpad, switch to the new
helper functions. In a few cases we only need one coordinate so just leave the
other one as 0 in those cases.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/evdev-mt-touchpad-buttons.c
src/evdev-mt-touchpad-edge-scroll.c
src/evdev-mt-touchpad.c