include: fix mask size calculation
Same bug as inputproto-2.0.1-9-gb1149ab, if the XI2LASTEVENT was a multiple of 8, the mask was one bit too short. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
parent
b2015a2c01
commit
2aad1a2b42
|
@ -72,7 +72,7 @@ extern _X_EXPORT int CountBits(const uint8_t *mask, int len);
|
|||
* this number here is bumped.
|
||||
*/
|
||||
#define XI2LASTEVENT 17 /* XI_RawMotion */
|
||||
#define XI2MASKSIZE ((XI2LASTEVENT + 7)/8) /* no of bits for masks */
|
||||
#define XI2MASKSIZE ((XI2LASTEVENT >> 3) + 1) /* no of bytes for masks */
|
||||
|
||||
/**
|
||||
* Scroll types for ::SetScrollValuator and the scroll type in the
|
||||
|
|
Loading…
Reference in New Issue
Block a user