diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/gui/wps_parser.c | 6 | ||||
| -rw-r--r-- | apps/misc.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c index 73516f6..682ff68 100644 --- a/apps/gui/wps_parser.c +++ b/apps/gui/wps_parser.c @@ -31,6 +31,8 @@ #define DEBUGF printf #define FONT_SYSFIXED 0 #define FONT_UI 1 +#define SYSFONT_HEIGHT 8 +#include "checkwps.h" #else #include "debug.h" #endif @@ -818,7 +820,11 @@ static int parse_progressbar(const char *wps_bufptr, const char *ptr = wps_bufptr; struct progressbar *pb; struct viewport *vp = &wps_data->viewports[wps_data->num_viewports].vp; +#ifndef __PCTOOL__ int font_height = font_get(vp->font)->height; +#else + int font_height = 8; +#endif int line_y_pos = font_height*(wps_data->num_lines - wps_data->viewports[wps_data->num_viewports].first_line); diff --git a/apps/misc.c b/apps/misc.c index f37bd5f..60955b9 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -24,6 +24,7 @@ #include "lcd.h" #include "file.h" #ifdef __PCTOOL__ +#include <stdint.h> #include <stdarg.h> #else #include "sprintf.h" |