diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-15 10:29:19 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-15 10:36:30 +1000 |
commit | 975bf60a82f863e3bdc36fc3f8201b48a4d1e6f7 (patch) | |
tree | 494128adcdd225efe01802bd63842529576bb9b7 /dix/eventconvert.c | |
parent | d040af7fa3c7314917414a28d723bdda3c4289c3 (diff) |
dix: use sizeof(FP3232) instead of 2 * sizeof(int32_t).
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/eventconvert.c')
-rw-r--r-- | dix/eventconvert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dix/eventconvert.c b/dix/eventconvert.c index 765c84b66..039a17f79 100644 --- a/dix/eventconvert.c +++ b/dix/eventconvert.c @@ -469,8 +469,8 @@ eventToRawEvent(RawDeviceEvent *ev, xEvent **xi) FP3232 *axisval; nvals = count_bits(ev->valuators.mask, sizeof(ev->valuators.mask)/sizeof(ev->valuators.mask[0])); - len += nvals * (2 * sizeof(uint32_t)) * 2; /* 8 byte per valuator, once - raw, once processed */ + len += nvals * sizeof(FP3232) * 2; /* 8 byte per valuator, once + raw, once processed */ vallen = bytes_to_int32(bits_to_bytes(MAX_VALUATORS)); len += vallen * 4; /* valuators mask */ |