forked from len0rd/rockbox
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
This commit is contained in:
parent
ac84357fa5
commit
b4920271ba
3 changed files with 16 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue