summaryrefslogtreecommitdiff
path: root/tools/checkwps/checkwps.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/checkwps/checkwps.c')
-rw-r--r--tools/checkwps/checkwps.c9
1 files changed, 4 insertions, 5 deletions
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
152struct system_status global_status;
153
152int getwidth(void) { return LCD_WIDTH; } 154int getwidth(void) { return LCD_WIDTH; }
153int getheight(void) { return LCD_HEIGHT; } 155int 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
220static int loaded_fonts = 0; 222static int loaded_fonts = 0;
221int font_load(struct font* pf, const char *path) 223int 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 */