summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/lib/gray.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/plugins/lib/gray.h b/apps/plugins/lib/gray.h
index f82cf389c3..7092b84958 100644
--- a/apps/plugins/lib/gray.h
+++ b/apps/plugins/lib/gray.h
@@ -30,9 +30,12 @@
30 30
31#ifdef HAVE_LCD_BITMAP /* and also not for the Player */ 31#ifdef HAVE_LCD_BITMAP /* and also not for the Player */
32 32
33#define GRAY_MAX_LEVEL 255 /* The real value is variable, so normalise */ 33#define GRAY_BRIGHTNESS(y) (y)
34#define GRAY_BLACK 0 34
35#define GRAY_WHITE GRAY_MAX_LEVEL 35#define GRAY_BLACK GRAY_BRIGHTNESS(0)
36#define GRAY_DARKGRAY GRAY_BRIGHTNESS(85)
37#define GRAY_LIGHTGRAY GRAY_BRIGHTNESS(170)
38#define GRAY_WHITE GRAY_BRIGHTNESS(255)
36 39
37/* Library initialisation and release */ 40/* Library initialisation and release */
38int gray_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size, 41int gray_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size,