summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/statusbar.c7
-rw-r--r--apps/gui/statusbar.h3
2 files changed, 2 insertions, 8 deletions
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c
index 70fe77facd..eec031fa93 100644
--- a/apps/gui/statusbar.c
+++ b/apps/gui/statusbar.c
@@ -95,13 +95,6 @@ void gui_statusbar_init(struct gui_statusbar * bar)
95#endif 95#endif
96} 96}
97 97
98void gui_statusbar_set_screen(struct gui_statusbar * bar,
99 struct screen * display)
100{
101 bar->display = display;
102 gui_statusbar_draw(bar, false);
103}
104
105void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw) 98void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
106{ 99{
107 struct screen * display = bar->display; 100 struct screen * display = bar->display;
diff --git a/apps/gui/statusbar.h b/apps/gui/statusbar.h
index 77ceefd69f..e7fe92eaf9 100644
--- a/apps/gui/statusbar.h
+++ b/apps/gui/statusbar.h
@@ -85,7 +85,8 @@ extern void gui_statusbar_init(struct gui_statusbar * bar);
85 * - bar : the statusbar structure 85 * - bar : the statusbar structure
86 * - display : the screen to attach 86 * - display : the screen to attach
87 */ 87 */
88extern void gui_statusbar_set_screen(struct gui_statusbar * bar, struct screen * display); 88#define gui_statusbar_set_screen(gui_statusbar, screen) \
89 (gui_statusbar)->display = screen
89 90
90/* 91/*
91 * Draws the status bar on the attached screen 92 * Draws the status bar on the attached screen