From b4920271ba414d1a91e2209f3b07c4506980ba3b Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 27 Aug 2004 00:34:15 +0000 Subject: Fixed new font format: necessity of offset table generation, output of fonts without one git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5018 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/gray_putsxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/lib') diff --git a/apps/plugins/lib/gray_putsxy.c b/apps/plugins/lib/gray_putsxy.c index 906b0e1b38..9b34ad7a65 100644 --- a/apps/plugins/lib/gray_putsxy.c +++ b/apps/plugins/lib/gray_putsxy.c @@ -53,8 +53,8 @@ void gray_putsxy(int x, int y, const unsigned char *str) /* get proportional width and glyph bits */ width = pf->width ? pf->width[ch] : pf->maxwidth; - bits = pf->bits + (pf->offset ? pf->offset[ch] - : MULU16(pf->height, ch)); + bits = pf->bits + (pf->offset ? pf->offset[ch] : + MULU16((pf->height + 7) / 8, MULU16(pf->maxwidth, ch))); gray_drawbitmap((const unsigned char*) bits, x, y, width, pf->height, width); -- cgit v1.2.3