mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-19 18:12:54 -05:00
add splash_progress
the loading track splash flashes and is ugly add a function to display a progressbar along with the splash message spruce up database commit message as well Change-Id: I2749b958c1ee5dad2631a5f999a4b00ddca7f225
This commit is contained in:
parent
e57b4f9099
commit
d73aaf3d9e
6 changed files with 113 additions and 46 deletions
|
|
@ -2201,12 +2201,11 @@ int playlist_resume(void)
|
|||
|
||||
for(count=0; count<nread && !exit_loop && !useraborted; count++,p++)
|
||||
{
|
||||
/* So a splash while we are loading. */
|
||||
/* Show a splash while we are loading. */
|
||||
splash_progress((total_read + count), control_file_size,
|
||||
"%s (%s)", str(LANG_WAIT), str(LANG_OFF_ABORT));
|
||||
if (TIME_AFTER(current_tick, last_tick + HZ/4))
|
||||
{
|
||||
splashf(0, str(LANG_LOADING_PERCENT),
|
||||
(total_read+count)*100/control_file_size,
|
||||
str(LANG_OFF_ABORT));
|
||||
if (action_userabort(TIMEOUT_NOBLOCK))
|
||||
{
|
||||
useraborted = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue