xserver/hw/kdrive/linux tslib.c,1.9,1.10
Phil Blundell <xserver-commit-u7BhqnqprCWvj1b/[email protected]>
| Newsgroups | gmane.comp.freedesktop.xserver.cvs |
|---|---|
| Message-ID | <[email protected]> |
Committed by: pb Update of /cvs/xserver/xserver/hw/kdrive/linux In directory pdx:/tmp/cvs-serv1449/hw/kdrive/linux Modified Files: tslib.c Log Message: 2004-07-02 Philip Blundell <philb-mXXj517/[email protected]> * hw/kdrive/linux/tslib.c (TsRead): Call ts_read multiple times, to avoid events getting stuck in the pipeline. Index: tslib.c =================================================================== RCS file: /cvs/xserver/xserver/hw/kdrive/linux/tslib.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- tslib.c 2 Jun 2004 20:49:50 -0000 1.9 +++ tslib.c 2 Jul 2004 21:30:00 -0000 1.10 @@ -85,9 +85,7 @@ return; } - n = ts_read(tsDev, &event, 1); - - if (n == 1) + while (ts_read(tsDev, &event, 1) == 1) { if (event.pressure) {