diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2008-04-02 22:16:14 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2008-04-02 22:16:14 +0000 |
| commit | 5c87a98b97b9ab6bd9647bb0bb8d00f58d5f179b (patch) | |
| tree | b61feaa66d26f63df09f03d0cb6921ac80edf560 /firmware/drivers/button.c | |
| parent | cdae493f96150808007883a7fb0b582d46af4a1a (diff) | |
| download | rockbox-5c87a98b97b9ab6bd9647bb0bb8d00f58d5f179b.zip rockbox-5c87a98b97b9ab6bd9647bb0bb8d00f58d5f179b.tar.gz rockbox-5c87a98b97b9ab6bd9647bb0bb8d00f58d5f179b.tar.bz2 rockbox-5c87a98b97b9ab6bd9647bb0bb8d00f58d5f179b.tar.xz | |
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 'firmware/drivers/button.c')
| -rw-r--r-- | firmware/drivers/button.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index d38306b..90ff800 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -247,9 +247,10 @@ static void button_tick(void) #ifdef HAVE_BACKLIGHT #ifdef HAVE_REMOTE_LCD if (btn & BUTTON_REMOTE) { - if (!remote_filter_first_keypress || is_remote_backlight_on() + if (!remote_filter_first_keypress + || is_remote_backlight_on(false) #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) - || (remote_type()==REMOTETYPE_H300_NONLCD) + || (remote_type()==REMOTETYPE_H300_NONLCD) #endif ) queue_post(&button_queue, btn, data); @@ -258,9 +259,9 @@ static void button_tick(void) } else #endif - if (!filter_first_keypress || is_backlight_on() + if (!filter_first_keypress || is_backlight_on(false) #if BUTTON_REMOTE - || (btn&BUTTON_REMOTE) + || (btn & BUTTON_REMOTE) #endif ) queue_post(&button_queue, btn, data); |