summaryrefslogtreecommitdiff
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
parent5d36aaf249f4f7baf752f3ecc5c252de05cd7166 (diff)
downloadrockbox-f8a5802d8e6434a4ffb3f9e09b8c128c6bc7fc83.zip
rockbox-f8a5802d8e6434a4ffb3f9e09b8c128c6bc7fc83.tar.gz
rockbox-f8a5802d8e6434a4ffb3f9e09b8c128c6bc7fc83.tar.bz2
rockbox-f8a5802d8e6434a4ffb3f9e09b8c128c6bc7fc83.tar.xz
Fixed pointer types & struct font
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5016 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/lib/gray_putsxy.c2
-rw-r--r--firmware/drivers/lcd-recorder.c4
-rw-r--r--firmware/export/font.h1
3 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/lib/gray_putsxy.c b/apps/plugins/lib/gray_putsxy.c
index 20af8a3..906b0e1 100644
--- a/apps/plugins/lib/gray_putsxy.c
+++ b/apps/plugins/lib/gray_putsxy.c
@@ -37,7 +37,7 @@
void gray_putsxy(int x, int y, const unsigned char *str)
{
int ch, width;
- unsigned char *bits;
+ const unsigned char *bits;
struct font *pf = _graybuf->curfont;
if ((unsigned) x >= (unsigned) _graybuf->width
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c
index a791a79..584ead9 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)
if (width > 0)
{
unsigned int i;
- unsigned char* bits = pf->bits +
+ const unsigned char* bits = pf->bits +
(pf->offset ? pf->offset[ch] : (pf->height * ch));
if (ofs != 0)
@@ -416,7 +416,7 @@ static void lcd_putsxyofs(int x, int y, int ofs, const unsigned char *str)
{
lcd_bitmap (bits + ofs, x, y + i, width,
MIN(8, pf->height - i), true);
- bits = (bitmap_t *)((int)bits + gwidth);
+ bits += gwidth;
}
}
else
diff --git a/firmware/export/font.h b/firmware/export/font.h
index fff7d05..eeb8a36 100644
--- a/firmware/export/font.h
+++ b/firmware/export/font.h
@@ -97,7 +97,6 @@ struct font {
const unsigned short *offset; /* offsets into bitmap data*/
const unsigned char *width; /* character widths or NULL if fixed*/
int defaultchar; /* default char (not glyph index)*/
- long bits_size; /* # words of bitmap_t bits*/
};
/* font routines*/