forked from len0rd/rockbox
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
This commit is contained in:
parent
fd150d05b4
commit
7949dd4dae
1 changed files with 3 additions and 0 deletions
|
@ -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) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue