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/jpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/jpeg.c') diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c index c601712b11..d760812b86 100644 --- a/apps/plugins/jpeg.c +++ b/apps/plugins/jpeg.c @@ -1520,7 +1520,7 @@ int scroll_bmp(struct t_disp* pdisp) int lastbutton = 0; /*empty the button queue first, to avoid unwanted scrolling */ - while(rb->button_get(false) != BUTTON_NONE); + rb->button_clear_queue(); while (true) { -- cgit v1.2.3