forked from len0rd/rockbox
The const police strikes and hits itself.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7772 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a0abff4bd5
commit
71bc504e5f
4 changed files with 8 additions and 8 deletions
|
|
@ -500,7 +500,7 @@ static void nopixel(int x, int y)
|
||||||
(void)y;
|
(void)y;
|
||||||
}
|
}
|
||||||
|
|
||||||
lcd_pixelfunc_type* lcd_remote_pixelfuncs[8] = {
|
lcd_pixelfunc_type* const lcd_remote_pixelfuncs[8] = {
|
||||||
flippixel, nopixel, setpixel, setpixel,
|
flippixel, nopixel, setpixel, setpixel,
|
||||||
nopixel, clearpixel, nopixel, clearpixel
|
nopixel, clearpixel, nopixel, clearpixel
|
||||||
};
|
};
|
||||||
|
|
@ -561,7 +561,7 @@ static void solidinvblock(unsigned char *address, unsigned mask, unsigned bits)
|
||||||
*address = (*address & ~mask) | (~bits & mask);
|
*address = (*address & ~mask) | (~bits & mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
lcd_blockfunc_type* lcd_remote_blockfuncs[8] = {
|
lcd_blockfunc_type* const lcd_remote_blockfuncs[8] = {
|
||||||
flipblock, bgblock, fgblock, solidblock,
|
flipblock, bgblock, fgblock, solidblock,
|
||||||
flipinvblock, bginvblock, fginvblock, solidinvblock
|
flipinvblock, bginvblock, fginvblock, solidinvblock
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -387,7 +387,7 @@ static void nopixel(int x, int y)
|
||||||
(void)y;
|
(void)y;
|
||||||
}
|
}
|
||||||
|
|
||||||
lcd_pixelfunc_type* lcd_pixelfuncs[8] = {
|
lcd_pixelfunc_type* const lcd_pixelfuncs[8] = {
|
||||||
flippixel, nopixel, setpixel, setpixel,
|
flippixel, nopixel, setpixel, setpixel,
|
||||||
nopixel, clearpixel, nopixel, clearpixel
|
nopixel, clearpixel, nopixel, clearpixel
|
||||||
};
|
};
|
||||||
|
|
@ -455,7 +455,7 @@ static void solidinvblock(unsigned char *address, unsigned mask, unsigned bits)
|
||||||
| (bits & mask & bg_pattern);
|
| (bits & mask & bg_pattern);
|
||||||
}
|
}
|
||||||
|
|
||||||
lcd_blockfunc_type* lcd_blockfuncs[8] = {
|
lcd_blockfunc_type* const lcd_blockfuncs[8] = {
|
||||||
flipblock, bgblock, fgblock, solidblock,
|
flipblock, bgblock, fgblock, solidblock,
|
||||||
flipinvblock, bginvblock, fginvblock, solidinvblock
|
flipinvblock, bginvblock, fginvblock, solidinvblock
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -391,7 +391,7 @@ static void nopixel(int x, int y)
|
||||||
(void)y;
|
(void)y;
|
||||||
}
|
}
|
||||||
|
|
||||||
lcd_pixelfunc_type* lcd_pixelfuncs[8] = {
|
lcd_pixelfunc_type* const lcd_pixelfuncs[8] = {
|
||||||
flippixel, nopixel, setpixel, setpixel,
|
flippixel, nopixel, setpixel, setpixel,
|
||||||
nopixel, clearpixel, nopixel, clearpixel
|
nopixel, clearpixel, nopixel, clearpixel
|
||||||
};
|
};
|
||||||
|
|
@ -452,7 +452,7 @@ static void solidinvblock(unsigned char *address, unsigned mask, unsigned bits)
|
||||||
*address = (*address & ~mask) | (~bits & mask);
|
*address = (*address & ~mask) | (~bits & mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
lcd_blockfunc_type* lcd_blockfuncs[8] = {
|
lcd_blockfunc_type* const lcd_blockfuncs[8] = {
|
||||||
flipblock, bgblock, fgblock, solidblock,
|
flipblock, bgblock, fgblock, solidblock,
|
||||||
flipinvblock, bginvblock, fginvblock, solidinvblock
|
flipinvblock, bginvblock, fginvblock, solidinvblock
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -163,8 +163,8 @@ extern void lcd_setfont(int font);
|
||||||
extern int lcd_getstringsize(const unsigned char *str, int *w, int *h);
|
extern int lcd_getstringsize(const unsigned char *str, int *w, int *h);
|
||||||
|
|
||||||
/* low level drawing function pointer arrays */
|
/* low level drawing function pointer arrays */
|
||||||
extern lcd_pixelfunc_type* lcd_pixelfuncs[8];
|
extern lcd_pixelfunc_type* const lcd_pixelfuncs[8];
|
||||||
extern lcd_blockfunc_type* lcd_blockfuncs[8];
|
extern lcd_blockfunc_type* const lcd_blockfuncs[8];
|
||||||
|
|
||||||
extern void lcd_drawpixel(int x, int y);
|
extern void lcd_drawpixel(int x, int y);
|
||||||
extern void lcd_drawline(int x1, int y1, int x2, int y2);
|
extern void lcd_drawline(int x1, int y1, int x2, int y2);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue