Option to preserve aspect ratio.

Some devices, like the Logitech T400 Zone Touch Mouse, have touch
surfaces with very different aspect ratios than the screen, which can
make visualizing the events more difficult.

With this patch, the aspect ratio is preserved, and events are drawn
on the center of the screen.

BUG=chromium-os:36445
TEST=Tested that toggling worked correctly with both the Logitech T620
and T400 touch mice.

Change-Id: Ia1f7cf4000de139c9227e0aaa508104eace5d988
Reviewed-on: https://gerrit.chromium.org/gerrit/38211
Commit-Ready: Andrew de los Reyes <adlr@chromium.org>
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
1 file changed