summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/gray_drawbitmap.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-08-03 20:57:06 +0000
committerJens Arnold <amiconn@rockbox.org>2004-08-03 20:57:06 +0000
commit85890b88df7d4cc315167409e6364418e5348324 (patch)
tree636e2874c66355db15f2ef45231294ed504e039f /apps/plugins/lib/gray_drawbitmap.c
parent0830339e2f5831575879a6194d43d2e958d8cf64 (diff)
downloadrockbox-85890b88df7d4cc315167409e6364418e5348324.zip
rockbox-85890b88df7d4cc315167409e6364418e5348324.tar.gz
rockbox-85890b88df7d4cc315167409e6364418e5348324.tar.bz2
rockbox-85890b88df7d4cc315167409e6364418e5348324.tar.xz
Const policed the grayscale lib & plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4985 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/gray_drawbitmap.c')
-rw-r--r--apps/plugins/lib/gray_drawbitmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/lib/gray_drawbitmap.c b/apps/plugins/lib/gray_drawbitmap.c
index 5ddb195..376f76d 100644
--- a/apps/plugins/lib/gray_drawbitmap.c
+++ b/apps/plugins/lib/gray_drawbitmap.c
@@ -48,12 +48,13 @@
The <stride> parameter is useful if you want to show only a part of a
bitmap. It should always be set to the "row length" of the bitmap.
*/
-void gray_drawbitmap(unsigned char *src, int x, int y, int nx, int ny,
+void gray_drawbitmap(const unsigned char *src, int x, int y, int nx, int ny,
int stride)
{
int shift;
unsigned bits, mask_top, mask_bottom;
- unsigned char *src_col, *dst, *dst_col;
+ const unsigned char *src_col;
+ unsigned char *dst, *dst_col;
void (*blockfunc)(unsigned char *address, unsigned mask, unsigned bits);
if ((unsigned) x >= (unsigned) _graybuf->width