diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/checkwps/SOURCES | 3 | ||||
-rw-r--r-- | tools/checkwps/checkwps.c | 9 |
2 files changed, 4 insertions, 8 deletions
diff --git a/tools/checkwps/SOURCES b/tools/checkwps/SOURCES index 3e12d1f74e..ab194ad68c 100644 --- a/tools/checkwps/SOURCES +++ b/tools/checkwps/SOURCES | |||
@@ -1,9 +1,6 @@ | |||
1 | ../../apps/gui/skin_engine/wps_debug.c | 1 | ../../apps/gui/skin_engine/wps_debug.c |
2 | ../../apps/gui/skin_engine/skin_parser.c | 2 | ../../apps/gui/skin_engine/skin_parser.c |
3 | ../../apps/gui/skin_engine/skin_backdrops.c | 3 | ../../apps/gui/skin_engine/skin_backdrops.c |
4 | #ifdef HAVE_LCD_BITMAP | ||
5 | ../../apps/gui/skin_engine/skin_fonts.c | ||
6 | #endif | ||
7 | ../../apps/gui/viewport.c | 4 | ../../apps/gui/viewport.c |
8 | ../../apps/misc.c | 5 | ../../apps/misc.c |
9 | ../../firmware/common/strlcpy.c | 6 | ../../firmware/common/strlcpy.c |
diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c index 39d4358320..e104928909 100644 --- a/tools/checkwps/checkwps.c +++ b/tools/checkwps/checkwps.c | |||
@@ -149,6 +149,8 @@ struct user_settings global_settings = { | |||
149 | #endif | 149 | #endif |
150 | }; | 150 | }; |
151 | 151 | ||
152 | struct system_status global_status; | ||
153 | |||
152 | int getwidth(void) { return LCD_WIDTH; } | 154 | int getwidth(void) { return LCD_WIDTH; } |
153 | int getheight(void) { return LCD_HEIGHT; } | 155 | int getheight(void) { return LCD_HEIGHT; } |
154 | #ifdef HAVE_REMOTE_LCD | 156 | #ifdef HAVE_REMOTE_LCD |
@@ -218,9 +220,9 @@ bool radio_hardware_present(void) | |||
218 | 220 | ||
219 | #ifdef HAVE_LCD_BITMAP | 221 | #ifdef HAVE_LCD_BITMAP |
220 | static int loaded_fonts = 0; | 222 | static int loaded_fonts = 0; |
221 | int font_load(struct font* pf, const char *path) | 223 | int font_load(const char *path) |
222 | { | 224 | { |
223 | int id = SYSTEMFONTCOUNT + loaded_fonts; | 225 | int id = 2 + loaded_fonts; |
224 | loaded_fonts++; | 226 | loaded_fonts++; |
225 | return id; | 227 | return id; |
226 | } | 228 | } |
@@ -273,9 +275,6 @@ int main(int argc, char **argv) | |||
273 | } | 275 | } |
274 | 276 | ||
275 | skin_buffer_init(buffer, SKIN_BUFFER_SIZE); | 277 | skin_buffer_init(buffer, SKIN_BUFFER_SIZE); |
276 | #ifdef HAVE_LCD_BITMAP | ||
277 | skin_font_init(); | ||
278 | #endif | ||
279 | 278 | ||
280 | /* Go through every skin that was thrown at us, error out at the first | 279 | /* Go through every skin that was thrown at us, error out at the first |
281 | * flawed wps */ | 280 | * flawed wps */ |