diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-07-06 13:23:28 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-07-06 13:23:28 +0000 |
| commit | d035f255c95d69c342d3ecbcf4cc88c1f1c01af2 (patch) | |
| tree | b12499b9c893086b12c03684986ee80a1abc1472 /apps/gui | |
| parent | feeac4f15fdd6e680522b172f7217ab0a98ad0f7 (diff) | |
| download | rockbox-d035f255c95d69c342d3ecbcf4cc88c1f1c01af2.zip rockbox-d035f255c95d69c342d3ecbcf4cc88c1f1c01af2.tar.gz rockbox-d035f255c95d69c342d3ecbcf4cc88c1f1c01af2.tar.bz2 rockbox-d035f255c95d69c342d3ecbcf4cc88c1f1c01af2.tar.xz | |
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
Diffstat (limited to 'apps/gui')
| -rw-r--r-- | apps/gui/wps_parser.c | 6 |
1 files changed, 6 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); |