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
|
|
@ -408,7 +408,8 @@ static void lcd_putsxyofs(int x, int y, int ofs, const unsigned char *str)
|
|||
{
|
||||
unsigned int i;
|
||||
const unsigned char* bits = pf->bits +
|
||||
(pf->offset ? pf->offset[ch] : (pf->height * ch));
|
||||
(pf->offset ? pf->offset[ch]
|
||||
: ((pf->height + 7) / 8 * pf->maxwidth * ch));
|
||||
|
||||
if (ofs != 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue