From d73aaf3d9ec0f232c733f9330d38cdec55d9264d Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 9 Oct 2022 00:47:44 -0400 Subject: 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 --- apps/gui/splash.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/gui/splash.h') 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); * it will be voiced */ extern void splash(int ticks, const char *str); + +/* + * Puts a splash message centered on all the screens with a progressbar + * - current : current progress increment + * - total : total increments + * - fmt : what to say *printf style + * updates limited internally to 20 fps - call repeatedly to update progress + */ +extern void splash_progress(int current, int total, const char *fmt, ...) ATTRIBUTE_PRINTF(3, 4); #endif /* _GUI_ICON_H_ */ -- cgit v1.2.3