mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-30 21:53:25 +00:00
Xi: use byte-counting macros instead of manual calculation.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
912402fd71
commit
7dd415aa6a
28 changed files with 56 additions and 55 deletions
|
|
@ -136,7 +136,7 @@ ProcXGetDeviceMotionEvents(ClientPtr client)
|
|||
(ScreenPtr) NULL, FALSE);
|
||||
}
|
||||
if (rep.nEvents > 0) {
|
||||
length = (rep.nEvents * size + 3) >> 2;
|
||||
length = bytes_to_int32(rep.nEvents * size);
|
||||
rep.length = length;
|
||||
}
|
||||
nEvents = rep.nEvents;
|
||||
|
|
|
|||
Loading…
Reference in a new issue