From eeadb32488852d8fa6b44c8ce2b6c0a1c8a5346a Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Wed, 14 Aug 2013 13:44:23 -0700 Subject: [PATCH] Bound touch and tool axes lengths below at 0 Change-Id: I75ca196312201773cfabb74ee5b28a7d80f6ba60 --- services/input/InputReader.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/input/InputReader.h b/services/input/InputReader.h index 98daaf5d8a540..a8bb63671b609 100644 --- a/services/input/InputReader.h +++ b/services/input/InputReader.h @@ -1285,6 +1285,9 @@ protected: if (haveSizeBias) { *outSize += sizeBias; } + if (*outSize < 0) { + *outSize = 0; + } } } mCalibration;