From 71bc504e5f7c56e547aae23813e5f62267d2972f Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 6 Nov 2005 23:49:29 +0000 Subject: [PATCH] The const police strikes and hits itself. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7772 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/lcd-h100-remote.c | 4 ++-- firmware/drivers/lcd-h100.c | 4 ++-- firmware/drivers/lcd-recorder.c | 4 ++-- 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 1103620f7b..2d4abe5ef0 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 001c3849dd..c5f13d67e5 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 53640ce649..7e064b8001 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 cfc73b4a09..c8be1d34f6 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);