diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-11-06 23:49:29 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-11-06 23:49:29 +0000 |
| commit | 71bc504e5f7c56e547aae23813e5f62267d2972f (patch) | |
| tree | a2f526b80dfb6c18109274db5b61ca51c46e1a2c | |
| parent | a0abff4bd53c5839276e984421b241cfed4db7c3 (diff) | |
| download | rockbox-71bc504e5f7c56e547aae23813e5f62267d2972f.zip rockbox-71bc504e5f7c56e547aae23813e5f62267d2972f.tar.gz rockbox-71bc504e5f7c56e547aae23813e5f62267d2972f.tar.bz2 rockbox-71bc504e5f7c56e547aae23813e5f62267d2972f.tar.xz | |
The const police strikes and hits itself.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7772 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/drivers/lcd-h100-remote.c | 4 | ||||
| -rw-r--r-- | firmware/drivers/lcd-h100.c | 4 | ||||
| -rw-r--r-- | firmware/drivers/lcd-recorder.c | 4 | ||||
| -rw-r--r-- | firmware/export/lcd.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c index 1103620..2d4abe5 100644 --- a/firmware/drivers/lcd-h100-remote.c +++ b/firmware/drivers/lcd-h100-remote.c @@ -500,7 +500,7 @@ static void nopixel(int x, int y) (void)y; } -lcd_pixelfunc_type* lcd_remote_pixelfuncs[8] = { +lcd_pixelfunc_type* const lcd_remote_pixelfuncs[8] = { flippixel, nopixel, setpixel, setpixel, nopixel, clearpixel, nopixel, clearpixel }; @@ -561,7 +561,7 @@ static void solidinvblock(unsigned char *address, unsigned mask, unsigned bits) *address = (*address & ~mask) | (~bits & mask); } -lcd_blockfunc_type* lcd_remote_blockfuncs[8] = { +lcd_blockfunc_type* const lcd_remote_blockfuncs[8] = { flipblock, bgblock, fgblock, solidblock, flipinvblock, bginvblock, fginvblock, solidinvblock }; diff --git a/firmware/drivers/lcd-h100.c b/firmware/drivers/lcd-h100.c index 001c384..c5f13d6 100644 --- a/firmware/drivers/lcd-h100.c +++ b/firmware/drivers/lcd-h100.c @@ -387,7 +387,7 @@ static void nopixel(int x, int y) (void)y; } -lcd_pixelfunc_type* lcd_pixelfuncs[8] = { +lcd_pixelfunc_type* const lcd_pixelfuncs[8] = { flippixel, nopixel, setpixel, setpixel, nopixel, clearpixel, nopixel, clearpixel }; @@ -455,7 +455,7 @@ static void solidinvblock(unsigned char *address, unsigned mask, unsigned bits) | (bits & mask & bg_pattern); } -lcd_blockfunc_type* lcd_blockfuncs[8] = { +lcd_blockfunc_type* const lcd_blockfuncs[8] = { flipblock, bgblock, fgblock, solidblock, flipinvblock, bginvblock, fginvblock, solidinvblock }; diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c index 53640ce..7e064b8 100644 --- a/firmware/drivers/lcd-recorder.c +++ b/firmware/drivers/lcd-recorder.c @@ -391,7 +391,7 @@ static void nopixel(int x, int y) (void)y; } -lcd_pixelfunc_type* lcd_pixelfuncs[8] = { +lcd_pixelfunc_type* const lcd_pixelfuncs[8] = { flippixel, nopixel, setpixel, setpixel, nopixel, clearpixel, nopixel, clearpixel }; @@ -452,7 +452,7 @@ static void solidinvblock(unsigned char *address, unsigned mask, unsigned bits) *address = (*address & ~mask) | (~bits & mask); } -lcd_blockfunc_type* lcd_blockfuncs[8] = { +lcd_blockfunc_type* const lcd_blockfuncs[8] = { flipblock, bgblock, fgblock, solidblock, flipinvblock, bginvblock, fginvblock, solidinvblock }; diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index cfc73b4..c8be1d3 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -163,8 +163,8 @@ extern void lcd_setfont(int font); extern int lcd_getstringsize(const unsigned char *str, int *w, int *h); /* low level drawing function pointer arrays */ -extern lcd_pixelfunc_type* lcd_pixelfuncs[8]; -extern lcd_blockfunc_type* lcd_blockfuncs[8]; +extern lcd_pixelfunc_type* const lcd_pixelfuncs[8]; +extern lcd_blockfunc_type* const lcd_blockfuncs[8]; extern void lcd_drawpixel(int x, int y); extern void lcd_drawline(int x1, int y1, int x2, int y2); |