diff options
author | Shawn Rutledge <shawn.rutledge@nokia.com> | 2012-03-06 16:29:50 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-07 00:08:35 +0100 |
commit | eddabd2395c6bf6516893d04c22e7fde2be9e1a1 (patch) | |
tree | d0c1e6aa974102d6237e8e8c7d00b707d90f7083 /src/plugins/generic/evdevtouch | |
parent | 02d947524d887e3ff6cb24065ccdbf3311ea81a8 (diff) |
Fix the bit test for ABS_MT_SLOT to detect protocol B
I tested, it didn't work. This is from a previous patch I had
already gotten working before 40a5ba4d3fccb449dcfd8d9a0deaf4c7f0fe12bc
was submitted.
Change-Id: I868f069fe834b3122ed9b5b3dc9af0781d6e1d0d
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Diffstat (limited to 'src/plugins/generic/evdevtouch')
-rw-r--r-- | src/plugins/generic/evdevtouch/qevdevtouch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/generic/evdevtouch/qevdevtouch.cpp b/src/plugins/generic/evdevtouch/qevdevtouch.cpp index 73f253ae96..9e6347457d 100644 --- a/src/plugins/generic/evdevtouch/qevdevtouch.cpp +++ b/src/plugins/generic/evdevtouch/qevdevtouch.cpp @@ -134,7 +134,7 @@ void QTouchScreenData::registerDevice() static inline bool testBit(long bit, const long *array) { - return array[bit / LONG_BITS] & (1 << (bit & (LONG_BITS - 1))); + return (array[bit / LONG_BITS] >> bit % LONG_BITS) & 1; } QTouchScreenHandler::QTouchScreenHandler(const QString &spec) |