evdev: force a resolution of 1 where no resolution is set
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 19 Jun 2014 01:17:10 +0000 (11:17 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 19 Jun 2014 02:07:17 +0000 (12:07 +1000)
commit3a812385d1c21747508ca51634a48ebf2970b84c
tree86522ece591086081c1ed2f854f82289f5511ab7
parentdf212db2a3335466648496d34d1ece4b2bdd1c5d
evdev: force a resolution of 1 where no resolution is set

Avoids nasty surprises later when we divide by 0. This matters particularly
when testing a device through uinput, which can't set the resolution.

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