summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/eventcomm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c
index c323f8f..be0f4ee 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -180,8 +180,8 @@ InitializeTouch(InputInfoPtr pInfo)
* and Y. */
valuator_mask_set(proto_data->last_mt_vals[i], 0, 0);
valuator_mask_set(proto_data->last_mt_vals[i], 1, 0);
- for (j = 4; j < priv->num_mt_axes; j++)
- valuator_mask_set(proto_data->last_mt_vals[i], j, 0);
+ for (j = 0; j < priv->num_mt_axes; j++)
+ valuator_mask_set(proto_data->last_mt_vals[i], 4 + j, 0);
}
}
#endif