From d035f255c95d69c342d3ecbcf4cc88c1f1c01af2 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 6 Jul 2008 13:23:28 +0000 Subject: get checkwps building again (FS#9150) - still doesnt compile on d2 and mr500 though git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17957 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps_parser.c | 6 ++++++ apps/misc.c | 1 + 2 files changed, 7 insertions(+) (limited to 'apps') 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 @@ #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 f37bd5f081..60955b9820 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -24,6 +24,7 @@ #include "lcd.h" #include "file.h" #ifdef __PCTOOL__ +#include #include #else #include "sprintf.h" -- cgit v1.2.3