summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-10-09 00:47:44 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2022-10-09 08:46:51 -0400
commitd73aaf3d9ec0f232c733f9330d38cdec55d9264d (patch)
treeb124e48be4feb16e5d5c551a63714975869eb8a3 /apps/onplay.c
parente57b4f909901ccc04b596ea817a98100b5f7b33b (diff)
downloadrockbox-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/onplay.c')
-rw-r--r--apps/onplay.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index e4e2a7b3b8..bb93d204e0 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -382,8 +382,9 @@ static bool playing_time(void)
382 although playback continues forward. */ 382 although playback continues forward. */
383 for (i = 0; i < pti.nb_tracks; i++) { 383 for (i = 0; i < pti.nb_tracks; i++) {
384 /* Show a splash while we are loading. */ 384 /* Show a splash while we are loading. */
385 splashf(0, str(LANG_LOADING_PERCENT), 385 splash_progress(i, pti.nb_tracks,
386 i*100/pti.nb_tracks, str(LANG_OFF_ABORT)); 386 "%s (%s)", str(LANG_WAIT), str(LANG_OFF_ABORT));
387
387 /* Voice equivalent */ 388 /* Voice equivalent */
388 if (TIME_AFTER(current_tick, talked_tick+5*HZ)) { 389 if (TIME_AFTER(current_tick, talked_tick+5*HZ)) {
389 talked_tick = current_tick; 390 talked_tick = current_tick;