diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-10-09 00:47:44 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-10-09 08:46:51 -0400 |
commit | d73aaf3d9ec0f232c733f9330d38cdec55d9264d (patch) | |
tree | b124e48be4feb16e5d5c551a63714975869eb8a3 /apps/playlist.c | |
parent | e57b4f909901ccc04b596ea817a98100b5f7b33b (diff) | |
download | rockbox-d73aaf3d9ec0f232c733f9330d38cdec55d9264d.tar.gz rockbox-d73aaf3d9ec0f232c733f9330d38cdec55d9264d.zip |
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
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 70a1a0823e..837e9d7f44 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -2201,12 +2201,11 @@ int playlist_resume(void) | |||
2201 | 2201 | ||
2202 | for(count=0; count<nread && !exit_loop && !useraborted; count++,p++) | 2202 | for(count=0; count<nread && !exit_loop && !useraborted; count++,p++) |
2203 | { | 2203 | { |
2204 | /* So a splash while we are loading. */ | 2204 | /* Show a splash while we are loading. */ |
2205 | splash_progress((total_read + count), control_file_size, | ||
2206 | "%s (%s)", str(LANG_WAIT), str(LANG_OFF_ABORT)); | ||
2205 | if (TIME_AFTER(current_tick, last_tick + HZ/4)) | 2207 | if (TIME_AFTER(current_tick, last_tick + HZ/4)) |
2206 | { | 2208 | { |
2207 | splashf(0, str(LANG_LOADING_PERCENT), | ||
2208 | (total_read+count)*100/control_file_size, | ||
2209 | str(LANG_OFF_ABORT)); | ||
2210 | if (action_userabort(TIMEOUT_NOBLOCK)) | 2209 | if (action_userabort(TIMEOUT_NOBLOCK)) |
2211 | { | 2210 | { |
2212 | useraborted = true; | 2211 | useraborted = true; |