1
0
Fork 0
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:
Jens Arnold 2004-08-27 00:34:15 +00:00
parent ac84357fa5
commit b4920271ba
3 changed files with 16 additions and 4 deletions

View file

@ -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)
{