summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/gray_drawbitmap.c
diff options
context:
space:
mode:
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 5ddb19568a..376f76d45e 100644
--- a/apps/plugins/lib/gray_drawbitmap.c
+++ b/apps/plugins/lib/gray_drawbitmap.c
@@ -48,12 +48,13 @@
48 The <stride> parameter is useful if you want to show only a part of a 48 The <stride> parameter is useful if you want to show only a part of a
49 bitmap. It should always be set to the "row length" of the bitmap. 49 bitmap. It should always be set to the "row length" of the bitmap.
50 */ 50 */
51void gray_drawbitmap(unsigned char *src, int x, int y, int nx, int ny, 51void gray_drawbitmap(const unsigned char *src, int x, int y, int nx, int ny,
52 int stride) 52 int stride)
53{ 53{
54 int shift; 54 int shift;
55 unsigned bits, mask_top, mask_bottom; 55 unsigned bits, mask_top, mask_bottom;
56 unsigned char *src_col, *dst, *dst_col; 56 const unsigned char *src_col;
57 unsigned char *dst, *dst_col;
57 void (*blockfunc)(unsigned char *address, unsigned mask, unsigned bits); 58 void (*blockfunc)(unsigned char *address, unsigned mask, unsigned bits);
58 59
59 if ((unsigned) x >= (unsigned) _graybuf->width 60 if ((unsigned) x >= (unsigned) _graybuf->width