diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2004-08-27 00:34:15 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2004-08-27 00:34:15 +0000 |
| commit | b4920271ba414d1a91e2209f3b07c4506980ba3b (patch) | |
| tree | 4ab165989ab2b62167ad2479189128cd7466b245 /apps/plugins/lib | |
| parent | ac84357fa59718f5f9e63a1e219673ca861e7998 (diff) | |
| download | rockbox-b4920271ba414d1a91e2209f3b07c4506980ba3b.zip rockbox-b4920271ba414d1a91e2209f3b07c4506980ba3b.tar.gz rockbox-b4920271ba414d1a91e2209f3b07c4506980ba3b.tar.bz2 rockbox-b4920271ba414d1a91e2209f3b07c4506980ba3b.tar.xz | |
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/plugins/lib')
| -rw-r--r-- | apps/plugins/lib/gray_putsxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lib/gray_putsxy.c b/apps/plugins/lib/gray_putsxy.c index 906b0e1..9b34ad7 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); |