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/gui/splash.h | |
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/gui/splash.h')
-rw-r--r-- | apps/gui/splash.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/gui/splash.h b/apps/gui/splash.h index 76b4c16d0c..4002af5296 100644 --- a/apps/gui/splash.h +++ b/apps/gui/splash.h | |||
@@ -39,4 +39,13 @@ extern void splashf(int ticks, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3); | |||
39 | * it will be voiced | 39 | * it will be voiced |
40 | */ | 40 | */ |
41 | extern void splash(int ticks, const char *str); | 41 | extern void splash(int ticks, const char *str); |
42 | |||
43 | /* | ||
44 | * Puts a splash message centered on all the screens with a progressbar | ||
45 | * - current : current progress increment | ||
46 | * - total : total increments | ||
47 | * - fmt : what to say *printf style | ||
48 | * updates limited internally to 20 fps - call repeatedly to update progress | ||
49 | */ | ||
50 | extern void splash_progress(int current, int total, const char *fmt, ...) ATTRIBUTE_PRINTF(3, 4); | ||
42 | #endif /* _GUI_ICON_H_ */ | 51 | #endif /* _GUI_ICON_H_ */ |