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>
This commit is contained in:
Shawn Rutledge 2012-03-06 16:29:50 +01:00 committed by Qt by Nokia
parent 02d947524d
commit eddabd2395

View File

@ -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)