Skip to content

Commit 22f4f68

Browse files
committed
optionally add TSLIB_MT_VALID check
Signed-off-by: Martin Kepplinger <martink@posteo.de>
1 parent 4aa0996 commit 22f4f68

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tslib.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,13 @@ static void ReadInputMT(InputInfoPtr local)
179179

180180
for (i = 0; i < ret; i++) {
181181
for (j = 0; j < priv->slots; j++) {
182+
#ifdef TSLIB_MT_VALID
183+
if (!(priv->samp_mt[i][j].valid & TSLIB_MT_VALID))
184+
continue;
185+
#else
182186
if (priv->samp_mt[i][j].valid != 1)
183187
continue;
188+
#endif
184189

185190
ReadHandleMTSample(local, i, j);
186191

0 commit comments

Comments
 (0)