diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/color_picker.c | 1 | ||||
-rw-r--r-- | apps/gui/gwps-common.c | 2 | ||||
-rw-r--r-- | apps/gui/list.c | 1 | ||||
-rw-r--r-- | apps/gui/splash.c | 9 |
4 files changed, 8 insertions, 5 deletions
diff --git a/apps/gui/color_picker.c b/apps/gui/color_picker.c index b883349620..a788cbade2 100644 --- a/apps/gui/color_picker.c +++ b/apps/gui/color_picker.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "splash.h" | 32 | #include "splash.h" |
33 | #include "action.h" | 33 | #include "action.h" |
34 | #include "icon.h" | 34 | #include "icon.h" |
35 | #include "color_picker.h" | ||
35 | 36 | ||
36 | /* structure for color info */ | 37 | /* structure for color info */ |
37 | struct rgb_pick | 38 | struct rgb_pick |
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 9582a48dc4..ed4ca17b2a 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -64,7 +64,7 @@ | |||
64 | 64 | ||
65 | /* draws the statusbar on the given wps-screen */ | 65 | /* draws the statusbar on the given wps-screen */ |
66 | #ifdef HAVE_LCD_BITMAP | 66 | #ifdef HAVE_LCD_BITMAP |
67 | void gui_wps_statusbar_draw(struct gui_wps *wps, bool force) | 67 | static void gui_wps_statusbar_draw(struct gui_wps *wps, bool force) |
68 | { | 68 | { |
69 | bool draw = global_settings.statusbar; | 69 | bool draw = global_settings.statusbar; |
70 | 70 | ||
diff --git a/apps/gui/list.c b/apps/gui/list.c index 2c849660d6..6b4229545d 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include "misc.h" | 38 | #include "misc.h" |
39 | #include "talk.h" | 39 | #include "talk.h" |
40 | #include "viewport.h" | 40 | #include "viewport.h" |
41 | #include "list.h" | ||
41 | 42 | ||
42 | #ifdef HAVE_LCD_CHARCELLS | 43 | #ifdef HAVE_LCD_CHARCELLS |
43 | #define SCROLL_LIMIT 1 | 44 | #define SCROLL_LIMIT 1 |
diff --git a/apps/gui/splash.c b/apps/gui/splash.c index c690777cc6..df0446e62d 100644 --- a/apps/gui/splash.c +++ b/apps/gui/splash.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "lang.h" | 25 | #include "lang.h" |
26 | #include "settings.h" | 26 | #include "settings.h" |
27 | #include "talk.h" | 27 | #include "talk.h" |
28 | #include "splash.h" | ||
28 | 29 | ||
29 | #ifndef MAX | 30 | #ifndef MAX |
30 | #define MAX(a, b) (((a)>(b))?(a):(b)) | 31 | #define MAX(a, b) (((a)>(b))?(a):(b)) |
@@ -185,7 +186,7 @@ static void splash(struct screen * screen, const char *fmt, va_list ap) | |||
185 | } | 186 | } |
186 | 187 | ||
187 | void gui_splash(struct screen * screen, int ticks, | 188 | void gui_splash(struct screen * screen, int ticks, |
188 | const unsigned char *fmt, ...) | 189 | const char *fmt, ...) |
189 | { | 190 | { |
190 | va_list ap; | 191 | va_list ap; |
191 | va_start( ap, fmt ); | 192 | va_start( ap, fmt ); |
@@ -196,21 +197,21 @@ void gui_splash(struct screen * screen, int ticks, | |||
196 | sleep(ticks); | 197 | sleep(ticks); |
197 | } | 198 | } |
198 | 199 | ||
199 | void gui_syncsplash(int ticks, const unsigned char *fmt, ...) | 200 | void gui_syncsplash(int ticks, const char *fmt, ...) |
200 | { | 201 | { |
201 | va_list ap; | 202 | va_list ap; |
202 | int i; | 203 | int i; |
203 | #if !defined(SIMULATOR) || CONFIG_CODEC == SWCODEC | 204 | #if !defined(SIMULATOR) || CONFIG_CODEC == SWCODEC |
204 | long id; | 205 | long id; |
205 | /* fmt may be a so called virtual pointer. See settings.h. */ | 206 | /* fmt may be a so called virtual pointer. See settings.h. */ |
206 | if((id = P2ID(fmt)) >= 0) | 207 | if((id = P2ID((unsigned char *)fmt)) >= 0) |
207 | /* If fmt specifies a voicefont ID, and voice menus are | 208 | /* If fmt specifies a voicefont ID, and voice menus are |
208 | enabled, then speak it. */ | 209 | enabled, then speak it. */ |
209 | cond_talk_ids_fq(id); | 210 | cond_talk_ids_fq(id); |
210 | #endif | 211 | #endif |
211 | /* If fmt is a lang ID then get the corresponding string (which | 212 | /* If fmt is a lang ID then get the corresponding string (which |
212 | still might contain % place holders). */ | 213 | still might contain % place holders). */ |
213 | fmt = P2STR(fmt); | 214 | fmt = P2STR((unsigned char *)fmt); |
214 | va_start( ap, fmt ); | 215 | va_start( ap, fmt ); |
215 | FOR_NB_SCREENS(i) | 216 | FOR_NB_SCREENS(i) |
216 | splash(&(screens[i]), fmt, ap); | 217 | splash(&(screens[i]), fmt, ap); |