summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-recorder.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-08-26 22:05:35 +0000
committerJens Arnold <amiconn@rockbox.org>2004-08-26 22:05:35 +0000
commitf8a5802d8e6434a4ffb3f9e09b8c128c6bc7fc83 (patch)
tree1c41a4ea3532a9eec7178ecc4c064e98c38045df /firmware/drivers/lcd-recorder.c
parent5d36aaf249f4f7baf752f3ecc5c252de05cd7166 (diff)
downloadrockbox-f8a5802d8e6434a4ffb3f9e09b8c128c6bc7fc83.tar.gz
rockbox-f8a5802d8e6434a4ffb3f9e09b8c128c6bc7fc83.zip
Fixed pointer types & struct font
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5016 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-recorder.c')
-rw-r--r--firmware/drivers/lcd-recorder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c
index a791a79f4c..584ead91dc 100644
--- a/firmware/drivers/lcd-recorder.c
+++ b/firmware/drivers/lcd-recorder.c
@@ -407,7 +407,7 @@ 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 unsigned char* bits = pf->bits + 410 const 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)
@@ -416,7 +416,7 @@ static void lcd_putsxyofs(int x, int y, int ofs, const unsigned char *str)
416 { 416 {
417 lcd_bitmap (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 += gwidth;
420 } 420 }
421 } 421 }
422 else 422 else