summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/gray.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/gray.h')
-rw-r--r--apps/plugins/lib/gray.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/lib/gray.h b/apps/plugins/lib/gray.h
index c8a9afc390..52d6f6c0df 100644
--- a/apps/plugins/lib/gray.h
+++ b/apps/plugins/lib/gray.h
@@ -362,7 +362,7 @@ void gray_fillrect(int x, int y, int nx, int ny);
362 362
363 This is the only drawing function NOT using the drawinfo. 363 This is the only drawing function NOT using the drawinfo.
364 */ 364 */
365void gray_drawgraymap(unsigned char *src, int x, int y, int nx, int ny, 365void gray_drawgraymap(const unsigned char *src, int x, int y, int nx, int ny,
366 int stride); 366 int stride);
367 367
368/*--------------------------------------------------------------------------- 368/*---------------------------------------------------------------------------
@@ -384,7 +384,7 @@ void gray_drawgraymap(unsigned char *src, int x, int y, int nx, int ny,
384 The <stride> parameter is useful if you want to show only a part of a 384 The <stride> parameter is useful if you want to show only a part of a
385 bitmap. It should always be set to the "row length" of the bitmap. 385 bitmap. It should always be set to the "row length" of the bitmap.
386 */ 386 */
387void gray_drawbitmap(unsigned char *src, int x, int y, int nx, int ny, 387void gray_drawbitmap(const unsigned char *src, int x, int y, int nx, int ny,
388 int stride); 388 int stride);
389 389
390/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 390/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -409,14 +409,14 @@ void gray_setfont(int newfont);
409 This works exactly the same way as the core lcd_getstringsize(), only that 409 This works exactly the same way as the core lcd_getstringsize(), only that
410 it uses the selected font for grayscale. 410 it uses the selected font for grayscale.
411 */ 411 */
412int gray_getstringsize(unsigned char *str, int *w, int *h); 412int gray_getstringsize(const unsigned char *str, int *w, int *h);
413 413
414/*--------------------------------------------------------------------------- 414/*---------------------------------------------------------------------------
415 Display text starting at (x, y) with the current font and drawinfo 415 Display text starting at (x, y) with the current font and drawinfo
416 ---------------------------------------------------------------------------- 416 ----------------------------------------------------------------------------
417 The drawmode is used as described for gray_set_drawmode() 417 The drawmode is used as described for gray_set_drawmode()
418 */ 418 */
419void gray_putsxy(int x, int y, unsigned char *str); 419void gray_putsxy(int x, int y, const unsigned char *str);
420 420
421/*=========================================================================== 421/*===========================================================================
422 Private functions and definitions, for use within the grayscale core only 422 Private functions and definitions, for use within the grayscale core only
@@ -458,9 +458,9 @@ extern _tGraybuf *_graybuf;
458extern short _gray_random_buffer; 458extern short _gray_random_buffer;
459 459
460/* Global function pointers */ 460/* Global function pointers */
461extern void (*_gray_pixelfuncs[4])(int x, int y, unsigned long pattern); 461extern void (* const _gray_pixelfuncs[4])(int x, int y, unsigned long pattern);
462extern void (*_gray_blockfuncs[4])(unsigned char *address, unsigned mask, 462extern void (* const _gray_blockfuncs[4])(unsigned char *address, unsigned mask,
463 unsigned bits); 463 unsigned bits);
464 464
465#endif /* HAVE_LCD_BITMAP */ 465#endif /* HAVE_LCD_BITMAP */
466#endif /* SIMULATOR */ 466#endif /* SIMULATOR */