diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/scrollbar.c | 20 | ||||
-rw-r--r-- | apps/gui/scrollbar.h | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/apps/gui/scrollbar.c b/apps/gui/scrollbar.c index b9038d902b..e2e70fd9fb 100644 --- a/apps/gui/scrollbar.c +++ b/apps/gui/scrollbar.c | |||
@@ -241,4 +241,24 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x, | |||
241 | #endif | 241 | #endif |
242 | } | 242 | } |
243 | } | 243 | } |
244 | |||
245 | void show_busy_slider(struct screen *s, int x, int y, int width, int height) | ||
246 | { | ||
247 | static int start = 0, dir = 1; | ||
248 | gui_scrollbar_draw(s, x, y, width, height, 100, | ||
249 | start, start+20, HORIZONTAL); | ||
250 | #if NB_SCREENS > 1 | ||
251 | if (s->screen_type == SCREEN_MAIN) | ||
252 | { | ||
253 | #endif | ||
254 | start += (dir*2); | ||
255 | if (start > 79) | ||
256 | dir = -1; | ||
257 | else if (start < 1) | ||
258 | dir = 1; | ||
259 | #if NB_SCREENS > 1 | ||
260 | } | ||
261 | #endif | ||
262 | } | ||
263 | |||
244 | #endif /* HAVE_LCD_BITMAP */ | 264 | #endif /* HAVE_LCD_BITMAP */ |
diff --git a/apps/gui/scrollbar.h b/apps/gui/scrollbar.h index 40279a1a9d..9e60730de0 100644 --- a/apps/gui/scrollbar.h +++ b/apps/gui/scrollbar.h | |||
@@ -55,5 +55,6 @@ extern void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, | |||
55 | int width, int height, int items, | 55 | int width, int height, int items, |
56 | int min_shown, int max_shown, | 56 | int min_shown, int max_shown, |
57 | unsigned flags); | 57 | unsigned flags); |
58 | extern void show_busy_slider(struct screen *s, int x, int y, int width, int height); | ||
58 | #endif /* HAVE_LCD_BITMAP */ | 59 | #endif /* HAVE_LCD_BITMAP */ |
59 | #endif /* _GUI_SCROLLBAR_H_ */ | 60 | #endif /* _GUI_SCROLLBAR_H_ */ |