summaryrefslogtreecommitdiff
path: root/apps/gui/splash.h
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/gui/splash.h
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/gui/splash.h')
-rw-r--r--apps/gui/splash.h9
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 */
41extern void splash(int ticks, const char *str); 41extern 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 */
50extern void splash_progress(int current, int total, const char *fmt, ...) ATTRIBUTE_PRINTF(3, 4);
42#endif /* _GUI_ICON_H_ */ 51#endif /* _GUI_ICON_H_ */