diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-08-07 11:23:33 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-08-13 11:19:35 +1000 |
commit | 59dc59a72ffd4cbc4df207bc688c92bb4863e8a9 (patch) | |
tree | 5febde28015e0ef5f08c13a6f27f796f7bf14b7f /dix | |
parent | 10d7948e0360860e1e9633dca39f646d492e73bf (diff) |
test: add XI2 eventconversion test for raw events.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix')
-rw-r--r-- | dix/eventconvert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/eventconvert.c b/dix/eventconvert.c index 866fa2926..98ae1a2c4 100644 --- a/dix/eventconvert.c +++ b/dix/eventconvert.c @@ -473,7 +473,7 @@ eventToRawEvent(RawDeviceEvent *ev, xEvent **xi) char *ptr; FP3232 *axisval; - nvals = count_bits(ev->valuators.mask, sizeof(ev->valuators.mask)/sizeof(ev->valuators.mask[0])); + nvals = count_bits(ev->valuators.mask, sizeof(ev->valuators.mask)); len += nvals * sizeof(FP3232) * 2; /* 8 byte per valuator, once raw, once processed */ vallen = bytes_to_int32(bits_to_bytes(MAX_VALUATORS)); |