forked from len0rd/rockbox
adjust the splash timer if the wrong key is pressed many times
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3463 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2517523c30
commit
7ab2ff550d
1 changed files with 2 additions and 1 deletions
|
@ -519,9 +519,10 @@ void splash(char *text, /* what to say */
|
|||
lcd_update();
|
||||
|
||||
if(ticks) {
|
||||
int start = current_tick;
|
||||
int done = ticks + current_tick + 1;
|
||||
while (TIME_BEFORE( current_tick, done)) {
|
||||
int button = button_get_w_tmo(ticks);
|
||||
int button = button_get_w_tmo(ticks - (current_tick-start));
|
||||
if((button & keymask) == keymask)
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue