summaryrefslogtreecommitdiff
path: root/apps/plugins/viewer.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-01-26 22:48:25 +0000
committerJens Arnold <amiconn@rockbox.org>2005-01-26 22:48:25 +0000
commit3c348df5cafaf5d893c610fd2caf8234abe5cf88 (patch)
tree631a926bffd197b48c9e4edb8b568319808e74b7 /apps/plugins/viewer.c
parent99d2a4b43642aef2ff859ed8195b62d3b2110a26 (diff)
Changed several places to use button_clear_queue() to empty the button queue. Added the ability to empty the (system's) button queue to the X11 simulatr.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5665 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/viewer.c')
-rw-r--r--apps/plugins/viewer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c
index 4628f8e7b3..281868bf65 100644
--- a/apps/plugins/viewer.c
+++ b/apps/plugins/viewer.c
@@ -356,7 +356,7 @@ static void fill_buffer(long pos, unsigned char* buf, unsigned size)
rb->lseek(fd, pos, SEEK_SET);
numread = rb->read(fd, buf, size);
- while (rb->button_get(false)); /* clear button queue */
+ rb->button_clear_queue(); /* clear button queue */
for(i = 0; i < numread; i++) {
switch(buf[i]) {