From 3c348df5cafaf5d893c610fd2caf8234abe5cf88 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 26 Jan 2005 22:48:25 +0000 Subject: 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 --- apps/plugins/viewer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/viewer.c') 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]) { -- cgit v1.2.3