summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-08-27 00:34:15 +0000
committerJens Arnold <amiconn@rockbox.org>2004-08-27 00:34:15 +0000
commitb4920271ba414d1a91e2209f3b07c4506980ba3b (patch)
tree4ab165989ab2b62167ad2479189128cd7466b245 /apps
parentac84357fa59718f5f9e63a1e219673ca861e7998 (diff)
downloadrockbox-b4920271ba414d1a91e2209f3b07c4506980ba3b.tar.gz
rockbox-b4920271ba414d1a91e2209f3b07c4506980ba3b.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/lib/gray_putsxy.c4
1 files changed, 2 insertions, 2 deletions
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)
53 53
54 /* get proportional width and glyph bits */ 54 /* get proportional width and glyph bits */
55 width = pf->width ? pf->width[ch] : pf->maxwidth; 55 width = pf->width ? pf->width[ch] : pf->maxwidth;
56 bits = pf->bits + (pf->offset ? pf->offset[ch] 56 bits = pf->bits + (pf->offset ? pf->offset[ch] :
57 : MULU16(pf->height, ch)); 57 MULU16((pf->height + 7) / 8, MULU16(pf->maxwidth, ch)));
58 58
59 gray_drawbitmap((const unsigned char*) bits, x, y, width, pf->height, 59 gray_drawbitmap((const unsigned char*) bits, x, y, width, pf->height,
60 width); 60 width);