diff options
author | Narayan Kamath <narayan@google.com> | 2014-05-02 17:53:33 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-05-02 17:58:43 +0100 |
commit | bc6001b026069714177526eb1120b0011d6f2a51 (patch) | |
tree | e8b3344c0d885fe5ab4b539ad99f0deb1ebcc008 /include | |
parent | c526c35e7398ad06185ea0575a976933b433441d (diff) | |
download | frameworks_native-bc6001b026069714177526eb1120b0011d6f2a51.zip frameworks_native-bc6001b026069714177526eb1120b0011d6f2a51.tar.gz frameworks_native-bc6001b026069714177526eb1120b0011d6f2a51.tar.bz2 |
Change InputMessage.motion.pointerSize to a uint32_t.
This ensures it's the same size in both 32 and 64 bit
processes and also brings it in line with struct
MotionEntry.
Change-Id: I66bb8b8d8664763e7dcbd489686051f563d5e1dc
Diffstat (limited to 'include')
-rw-r--r-- | include/input/InputTransport.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/input/InputTransport.h b/include/input/InputTransport.h index 609b679..8ffdfca 100644 --- a/include/input/InputTransport.h +++ b/include/input/InputTransport.h @@ -86,7 +86,7 @@ struct InputMessage { float yOffset; float xPrecision; float yPrecision; - size_t pointerCount; + uint32_t pointerCount; struct Pointer { PointerProperties properties; PointerCoords coords; @@ -234,7 +234,7 @@ public: float yPrecision, nsecs_t downTime, nsecs_t eventTime, - size_t pointerCount, + uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords); @@ -360,7 +360,7 @@ private: void initializeFrom(const InputMessage* msg) { eventTime = msg->body.motion.eventTime; idBits.clear(); - for (size_t i = 0; i < msg->body.motion.pointerCount; i++) { + for (uint32_t i = 0; i < msg->body.motion.pointerCount; i++) { uint32_t id = msg->body.motion.pointers[i].properties.id; idBits.markBit(id); idToIndex[id] = i; |