diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-12-28 05:55:05 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-12-28 05:55:05 +0000 |
| commit | 7949dd4daebe7f058839ecc22f653ee38064d97f (patch) | |
| tree | e4de0291118f4596d305241b970b18f487ef8c03 | |
| parent | fd150d05b475546089848e53e32a5bfdcebff4ca (diff) | |
| download | rockbox-7949dd4daebe7f058839ecc22f653ee38064d97f.zip rockbox-7949dd4daebe7f058839ecc22f653ee38064d97f.tar.gz rockbox-7949dd4daebe7f058839ecc22f653ee38064d97f.tar.bz2 rockbox-7949dd4daebe7f058839ecc22f653ee38064d97f.tar.xz | |
protect the yes/no screen from extra keypresses (which can happen if you display 2 yes/no screens too quickly)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31452 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/gui/yesno.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c index e89e45a..a2abae3 100644 --- a/apps/gui/yesno.c +++ b/apps/gui/yesno.c @@ -169,6 +169,9 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message, screens[i].stop_scroll(); gui_yesno_draw(&(yn[i])); } + /* make sure to eat any extranous keypresses */ + while (get_action(CONTEXT_STD+99, TIMEOUT_NOBLOCK)) + action_wait_for_release(); while (result==-1) { /* Repeat the question every 5secs (more or less) */ |