mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
x1000: bootloader: accept button input during splash
This allows screenshots to be taken while a splash is displayed. Change-Id: Id494189283db1b6877416f5a1ef1a13c8b654507
This commit is contained in:
parent
3d88f455cf
commit
6bc69c797c
1 changed files with 9 additions and 1 deletions
|
@ -116,7 +116,15 @@ void splashf(long delay, const char* msg, ...)
|
|||
} while(str);
|
||||
|
||||
lcd_update();
|
||||
sleep(delay);
|
||||
|
||||
if(delay == TIMEOUT_BLOCK) {
|
||||
while(get_button(TIMEOUT_BLOCK) != BL_QUIT);
|
||||
} else if(delay > 0) {
|
||||
long end_tick = current_tick + delay;
|
||||
do {
|
||||
get_button(end_tick - current_tick);
|
||||
} while(current_tick < end_tick);
|
||||
}
|
||||
}
|
||||
|
||||
int get_button(int timeout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue