summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/wps_parser.c6
-rw-r--r--apps/misc.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c
index 73516f604d..682ff681d0 100644
--- a/apps/gui/wps_parser.c
+++ b/apps/gui/wps_parser.c
@@ -31,6 +31,8 @@
31#define DEBUGF printf 31#define DEBUGF printf
32#define FONT_SYSFIXED 0 32#define FONT_SYSFIXED 0
33#define FONT_UI 1 33#define FONT_UI 1
34#define SYSFONT_HEIGHT 8
35#include "checkwps.h"
34#else 36#else
35#include "debug.h" 37#include "debug.h"
36#endif 38#endif
@@ -818,7 +820,11 @@ static int parse_progressbar(const char *wps_bufptr,
818 const char *ptr = wps_bufptr; 820 const char *ptr = wps_bufptr;
819 struct progressbar *pb; 821 struct progressbar *pb;
820 struct viewport *vp = &wps_data->viewports[wps_data->num_viewports].vp; 822 struct viewport *vp = &wps_data->viewports[wps_data->num_viewports].vp;
823#ifndef __PCTOOL__
821 int font_height = font_get(vp->font)->height; 824 int font_height = font_get(vp->font)->height;
825#else
826 int font_height = 8;
827#endif
822 int line_y_pos = font_height*(wps_data->num_lines - 828 int line_y_pos = font_height*(wps_data->num_lines -
823 wps_data->viewports[wps_data->num_viewports].first_line); 829 wps_data->viewports[wps_data->num_viewports].first_line);
824 830
diff --git a/apps/misc.c b/apps/misc.c
index f37bd5f081..60955b9820 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -24,6 +24,7 @@
24#include "lcd.h" 24#include "lcd.h"
25#include "file.h" 25#include "file.h"
26#ifdef __PCTOOL__ 26#ifdef __PCTOOL__
27#include <stdint.h>
27#include <stdarg.h> 28#include <stdarg.h>
28#else 29#else
29#include "sprintf.h" 30#include "sprintf.h"