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 /firmware/drivers/lcd-recorder.c | |
parent | ac84357fa59718f5f9e63a1e219673ca861e7998 (diff) |
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 'firmware/drivers/lcd-recorder.c')
-rw-r--r-- | firmware/drivers/lcd-recorder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c index 584ead91dc..d2b0c4e6b1 100644 --- a/firmware/drivers/lcd-recorder.c +++ b/firmware/drivers/lcd-recorder.c @@ -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) { |