summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/grey.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-04-02 22:16:14 +0000
committerJens Arnold <amiconn@rockbox.org>2008-04-02 22:16:14 +0000
commit5c87a98b97b9ab6bd9647bb0bb8d00f58d5f179b (patch)
treeb61feaa66d26f63df09f03d0cb6921ac80edf560 /apps/plugins/lib/grey.h
parentcdae493f96150808007883a7fb0b582d46af4a1a (diff)
downloadrockbox-5c87a98b97b9ab6bd9647bb0bb8d00f58d5f179b.tar.gz
rockbox-5c87a98b97b9ab6bd9647bb0bb8d00f58d5f179b.zip
Greyscale library: * Implement linearisation curve flipping for 1st/2nd Gen iPods (LCD is inverted when backlight is on, so the curve is also inverted). This needs a slight extension of is_backlight_on() functionality in the core. * Thorough recalibration of all reachable greyscale targets, and #ifdef cleanup. * Reduce on-target gamma a bit, because the displayable contrast range of a monochrome/greyscale isn't that high.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16936 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/grey.h')
-rw-r--r--apps/plugins/lib/grey.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/plugins/lib/grey.h b/apps/plugins/lib/grey.h
index 4298ae3ada..3d5e6d16c4 100644
--- a/apps/plugins/lib/grey.h
+++ b/apps/plugins/lib/grey.h
@@ -120,9 +120,16 @@ void grey_ub_scroll_down(int count);
120 120
121/*** Internal stuff ***/ 121/*** Internal stuff ***/
122 122
123/* standard gamma (s23p8) */
124#ifdef SIMULATOR /* Standard PC gamma */
125#define _GREY_GAMMA ((200<<8)/100)
126#else /* Target LCDs have a smaller contrast range */
127#define _GREY_GAMMA ((180<<8)/100)
128#endif
129
123/* flag definitions */ 130/* flag definitions */
124#define _GREY_RUNNING 0x0001 /* greyscale overlay is running */ 131#define _GREY_RUNNING 0x8000 /* greyscale overlay is running */
125#define _GREY_DEFERRED_UPDATE 0x0002 /* lcd_update() requested */ 132#define _GREY_DEFERRED_UPDATE 0x4000 /* lcd_update() requested */
126 133
127/* fast unsigned multiplication (16x16bit->32bit or 32x32bit->32bit, 134/* fast unsigned multiplication (16x16bit->32bit or 32x32bit->32bit,
128 * whichever is faster for the architecture) */ 135 * whichever is faster for the architecture) */