diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-15 13:03:57 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-15 13:03:57 (GMT) |
commit | 83d4da7bffa9118012a690ac99015a06c17b9133 (patch) | |
tree | 49e309467e8b5f3d67ca54aa6384fa14e753541d /src/gui/kernel/qapplication_x11.cpp | |
parent | 336dfcef05cb63df0a6d550b59a4badc7a0f01c1 (diff) | |
download | Qt-83d4da7bffa9118012a690ac99015a06c17b9133.zip Qt-83d4da7bffa9118012a690ac99015a06c17b9133.tar.gz Qt-83d4da7bffa9118012a690ac99015a06c17b9133.tar.bz2 |
EV_CNT and ABS_CNT aren't available everywhere, use *_MAX + 1 instead
Diffstat (limited to 'src/gui/kernel/qapplication_x11.cpp')
-rw-r--r-- | src/gui/kernel/qapplication_x11.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qapplication_x11.cpp b/src/gui/kernel/qapplication_x11.cpp index 228b61b..4ab99a8 100644 --- a/src/gui/kernel/qapplication_x11.cpp +++ b/src/gui/kernel/qapplication_x11.cpp @@ -6036,7 +6036,7 @@ static int openRX71Device(const QByteArray &deviceName) } // fetch the event type mask and check that the device reports absolute coordinates - QBitArray eventTypeMask(EV_CNT, false); + QBitArray eventTypeMask(EV_MAX + 1, false); if (ioctl(fd, EVIOCGBIT(0, eventTypeMask.size()), eventTypeMask.data_ptr()->data) < 0) { close(fd); return -1; @@ -6047,7 +6047,7 @@ static int openRX71Device(const QByteArray &deviceName) } // make sure that we can get the absolute X and Y positions from the device - QBitArray absMask(ABS_CNT, false); + QBitArray absMask(ABS_MAX + 1, false); if (ioctl(fd, EVIOCGBIT(EV_ABS, absMask.size()), absMask.data_ptr()->data) < 0) { close(fd); return -1; |