diff options
Diffstat (limited to 'apps/gui/quickscreen.c')
-rw-r--r-- | apps/gui/quickscreen.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c index 8a6c51e8c7..cda6e7aa51 100644 --- a/apps/gui/quickscreen.c +++ b/apps/gui/quickscreen.c | |||
@@ -43,7 +43,12 @@ void gui_quickscreen_init(struct gui_quickscreen * qs, | |||
43 | qs->callback=callback; | 43 | qs->callback=callback; |
44 | } | 44 | } |
45 | 45 | ||
46 | void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * display) | 46 | /* |
47 | * Draws the quickscreen on a given screen | ||
48 | * - qs : the quickscreen | ||
49 | * - display : the screen to draw on | ||
50 | */ | ||
51 | static void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * display) | ||
47 | { | 52 | { |
48 | #define PUTS_CENTER (display->height/2/font_h) | 53 | #define PUTS_CENTER (display->height/2/font_h) |
49 | #define PUTS_BOTTOM (display->height/font_h) | 54 | #define PUTS_BOTTOM (display->height/font_h) |
@@ -120,14 +125,24 @@ void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * display) | |||
120 | display->setfont(FONT_UI); | 125 | display->setfont(FONT_UI); |
121 | } | 126 | } |
122 | 127 | ||
123 | void gui_syncquickscreen_draw(struct gui_quickscreen * qs) | 128 | /* |
129 | * Draws the quickscreen on all available screens | ||
130 | * - qs : the quickscreen | ||
131 | */ | ||
132 | static void gui_syncquickscreen_draw(struct gui_quickscreen * qs) | ||
124 | { | 133 | { |
125 | int i; | 134 | int i; |
126 | FOR_NB_SCREENS(i) | 135 | FOR_NB_SCREENS(i) |
127 | gui_quickscreen_draw(qs, &screens[i]); | 136 | gui_quickscreen_draw(qs, &screens[i]); |
128 | } | 137 | } |
129 | 138 | ||
130 | bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button) | 139 | /* |
140 | * Does the actions associated to the given button if any | ||
141 | * - qs : the quickscreen | ||
142 | * - button : the key we are going to analyse | ||
143 | * returns : true if the button corresponded to an action, false otherwise | ||
144 | */ | ||
145 | static bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button) | ||
131 | { | 146 | { |
132 | 147 | ||
133 | switch(button) | 148 | switch(button) |