diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-08-03 20:57:06 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-08-03 20:57:06 +0000 |
commit | 85890b88df7d4cc315167409e6364418e5348324 (patch) | |
tree | 636e2874c66355db15f2ef45231294ed504e039f /apps/plugins/lib/gray_putsxy.c | |
parent | 0830339e2f5831575879a6194d43d2e958d8cf64 (diff) | |
download | rockbox-85890b88df7d4cc315167409e6364418e5348324.tar.gz rockbox-85890b88df7d4cc315167409e6364418e5348324.zip |
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_putsxy.c')
-rw-r--r-- | apps/plugins/lib/gray_putsxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lib/gray_putsxy.c b/apps/plugins/lib/gray_putsxy.c index 18cf2bac78..51f1ca166a 100644 --- a/apps/plugins/lib/gray_putsxy.c +++ b/apps/plugins/lib/gray_putsxy.c | |||
@@ -34,7 +34,7 @@ | |||
34 | ---------------------------------------------------------------------------- | 34 | ---------------------------------------------------------------------------- |
35 | The drawmode is used as described for gray_set_drawmode() | 35 | The drawmode is used as described for gray_set_drawmode() |
36 | */ | 36 | */ |
37 | void gray_putsxy(int x, int y, unsigned char *str) | 37 | void gray_putsxy(int x, int y, const unsigned char *str) |
38 | { | 38 | { |
39 | int ch, width; | 39 | int ch, width; |
40 | bitmap_t *bits; | 40 | bitmap_t *bits; |
@@ -56,7 +56,7 @@ void gray_putsxy(int x, int y, unsigned char *str) | |||
56 | bits = pf->bits + (pf->offset ? pf->offset[ch] | 56 | bits = pf->bits + (pf->offset ? pf->offset[ch] |
57 | : MULU16(pf->height, ch)); | 57 | : MULU16(pf->height, ch)); |
58 | 58 | ||
59 | gray_drawbitmap((unsigned char*) bits, x, y, width, pf->height, | 59 | gray_drawbitmap((const unsigned char*) bits, x, y, width, pf->height, |
60 | width); | 60 | width); |
61 | x += width; | 61 | x += width; |
62 | } | 62 | } |