Xi: fix wrong bit->byte conversion in ProcXIQueryPointer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
9afc3241c1
commit
1d20b9021e
|
@ -132,7 +132,7 @@ ProcXIQueryPointer(ClientPtr client)
|
|||
if (pDev->button)
|
||||
{
|
||||
int i, down;
|
||||
rep.buttons_len = ((pDev->button->numButtons/8) + 3)/4;
|
||||
rep.buttons_len = (((pDev->button->numButtons + 7)/8) + 3)/4;
|
||||
rep.length += rep.buttons_len;
|
||||
buttons = xcalloc(rep.buttons_len, 4);
|
||||
if (!buttons)
|
||||
|
|
Loading…
Reference in New Issue