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.h | |
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.h')
-rw-r--r-- | apps/plugins/lib/gray.h | 14 |
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 | */ |
365 | void gray_drawgraymap(unsigned char *src, int x, int y, int nx, int ny, | 365 | void 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 | */ |
387 | void gray_drawbitmap(unsigned char *src, int x, int y, int nx, int ny, | 387 | void 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 | */ |
412 | int gray_getstringsize(unsigned char *str, int *w, int *h); | 412 | int 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 | */ |
419 | void gray_putsxy(int x, int y, unsigned char *str); | 419 | void 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; | |||
458 | extern short _gray_random_buffer; | 458 | extern short _gray_random_buffer; |
459 | 459 | ||
460 | /* Global function pointers */ | 460 | /* Global function pointers */ |
461 | extern void (*_gray_pixelfuncs[4])(int x, int y, unsigned long pattern); | 461 | extern void (* const _gray_pixelfuncs[4])(int x, int y, unsigned long pattern); |
462 | extern void (*_gray_blockfuncs[4])(unsigned char *address, unsigned mask, | 462 | extern 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 */ |