diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-08-26 21:15:07 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-08-26 21:15:07 +0000 |
commit | 5d36aaf249f4f7baf752f3ecc5c252de05cd7166 (patch) | |
tree | bedfc311a9a72d07957627f4c4d829f586f83ca9 /firmware/drivers/lcd-recorder.c | |
parent | 033ba1669b1e4c7c29e0e4d4d3573a75b681abb5 (diff) | |
download | rockbox-5d36aaf249f4f7baf752f3ecc5c252de05cd7166.tar.gz rockbox-5d36aaf249f4f7baf752f3ecc5c252de05cd7166.zip |
New font format (already rotated) saves code, space and time. On the downside this new format is incompatible, so get the new fonts, too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5015 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-recorder.c')
-rw-r--r-- | firmware/drivers/lcd-recorder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c index c9781e77ef..a791a79f4c 100644 --- a/firmware/drivers/lcd-recorder.c +++ b/firmware/drivers/lcd-recorder.c | |||
@@ -407,14 +407,14 @@ static void lcd_putsxyofs(int x, int y, int ofs, const unsigned char *str) | |||
407 | if (width > 0) | 407 | if (width > 0) |
408 | { | 408 | { |
409 | unsigned int i; | 409 | unsigned int i; |
410 | bitmap_t* bits = pf->bits + | 410 | unsigned char* bits = pf->bits + |
411 | (pf->offset ? pf->offset[ch] : (pf->height * ch)); | 411 | (pf->offset ? pf->offset[ch] : (pf->height * ch)); |
412 | 412 | ||
413 | if (ofs != 0) | 413 | if (ofs != 0) |
414 | { | 414 | { |
415 | for (i = 0; i < pf->height; i += 8) | 415 | for (i = 0; i < pf->height; i += 8) |
416 | { | 416 | { |
417 | lcd_bitmap (((unsigned char*) bits) + ofs, x, y + i, width, | 417 | lcd_bitmap (bits + ofs, x, y + i, width, |
418 | MIN(8, pf->height - i), true); | 418 | MIN(8, pf->height - i), true); |
419 | bits = (bitmap_t *)((int)bits + gwidth); | 419 | bits = (bitmap_t *)((int)bits + gwidth); |
420 | } | 420 | } |