diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-01-23 22:13:00 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-01-23 22:13:00 +0000 |
commit | 3d2cab614ee82aed28dc368b15b4492597e233f3 (patch) | |
tree | d3409be761fe4e661cf077919251ce8135238ae1 /apps/plugins | |
parent | dcec70f6264ef59c25a2a585e4dd3cea628beafa (diff) | |
download | rockbox-3d2cab614ee82aed28dc368b15b4492597e233f3.tar.gz rockbox-3d2cab614ee82aed28dc368b15b4492597e233f3.zip |
Grayscale library: colour macros now matching the core LCD drivers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8431 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/lib/gray.h | 9 |
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 */ |
38 | int gray_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size, | 41 | int gray_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size, |