dix: fix typo in condition.

This commit is contained in:
Peter Hutterer 2007-02-14 11:26:53 +10:30 committed by Peter Hutterer
parent 33ef546b94
commit 25104ed2e6

View File

@ -515,7 +515,7 @@ GetPointerEvents(xEvent *events, DeviceIntPtr pDev, int type, int buttons,
}
/* Do we need to send a DeviceValuator event? */
if (!coreOnly & sendValuators) {
if (!coreOnly && sendValuators) {
if ((((num_valuators - 1) / 6) + 1) > MAX_VALUATOR_EVENTS)
num_valuators = MAX_VALUATOR_EVENTS * 6;
num_events += ((num_valuators - 1) / 6) + 1;