1
0
Fork 0
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:
Daniel Stenberg 2003-03-17 19:37:01 +00:00
parent 2517523c30
commit 7ab2ff550d

View file

@ -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;
}