diff options
Diffstat (limited to 'services/input/PointerController.cpp')
-rw-r--r-- | services/input/PointerController.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/services/input/PointerController.cpp b/services/input/PointerController.cpp index 12c7cba16cca..1d1730dfece3 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; |