summaryrefslogtreecommitdiffstats
path: root/services/input/PointerController.cpp
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-08-01 17:48:21 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-01 17:48:21 -0700
commit2a2ec87b55d423ae91385d4e9f51725154b7a272 (patch)
tree644a5b477891d6e2a6ac71cf3376cb60509f9f4b /services/input/PointerController.cpp
parent8a2da33c77bae825444fffd326d064225241c7cc (diff)
parentbe1aa8250cee7819c49741e819e81659d1d03823 (diff)
downloadframeworks_base-2a2ec87b55d423ae91385d4e9f51725154b7a272.zip
frameworks_base-2a2ec87b55d423ae91385d4e9f51725154b7a272.tar.gz
frameworks_base-2a2ec87b55d423ae91385d4e9f51725154b7a272.tar.bz2
Merge "Refactor input reader to add stylus support. Bug: 5064702"
Diffstat (limited to 'services/input/PointerController.cpp')
-rw-r--r--services/input/PointerController.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/services/input/PointerController.cpp b/services/input/PointerController.cpp
index 12c7cba..1d1730d 100644
--- a/services/input/PointerController.cpp
+++ b/services/input/PointerController.cpp
@@ -261,9 +261,7 @@ void PointerController::setSpots(const PointerCoords* spotCoords,
// Add or move spots for fingers that are down.
for (BitSet32 idBits(spotIdBits); !idBits.isEmpty(); ) {
- uint32_t id = idBits.firstMarkedBit();
- idBits.clearBit(id);
-
+ uint32_t id = idBits.clearFirstMarkedBit();
const PointerCoords& c = spotCoords[spotIdToIndex[id]];
const SpriteIcon& icon = c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE) > 0
? mResources.spotTouch : mResources.spotHover;