diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-01-26 22:48:25 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-01-26 22:48:25 +0000 |
commit | 3c348df5cafaf5d893c610fd2caf8234abe5cf88 (patch) | |
tree | 631a926bffd197b48c9e4edb8b568319808e74b7 /apps/plugins/calculator.c | |
parent | 99d2a4b43642aef2ff859ed8195b62d3b2110a26 (diff) | |
download | rockbox-3c348df5cafaf5d893c610fd2caf8234abe5cf88.tar.gz rockbox-3c348df5cafaf5d893c610fd2caf8234abe5cf88.zip |
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/calculator.c')
-rw-r--r-- | apps/plugins/calculator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c index 04231f471e..193ac8a7ce 100644 --- a/apps/plugins/calculator.c +++ b/apps/plugins/calculator.c | |||
@@ -397,7 +397,7 @@ void cal_initial (void) | |||
397 | printResult(); | 397 | printResult(); |
398 | 398 | ||
399 | /* clear button queue */ | 399 | /* clear button queue */ |
400 | while (rb->button_get(false)); | 400 | rb->button_clear_queue(); |
401 | } | 401 | } |
402 | 402 | ||
403 | /* ----------------------------------------------------------------------- | 403 | /* ----------------------------------------------------------------------- |
@@ -1357,7 +1357,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
1357 | } /* while (calStatus != cal_exit ) */ | 1357 | } /* while (calStatus != cal_exit ) */ |
1358 | 1358 | ||
1359 | /* rb->splash(HZ*2, true, "Hello world!"); */ | 1359 | /* rb->splash(HZ*2, true, "Hello world!"); */ |
1360 | while (rb->button_get(false)); | 1360 | rb->button_clear_queue(); |
1361 | return PLUGIN_OK; | 1361 | return PLUGIN_OK; |
1362 | } | 1362 | } |
1363 | 1363 | ||