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 /uisimulator/sdl/button.c | |
parent | cdae493f96150808007883a7fb0b582d46af4a1a (diff) | |
download | rockbox-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 'uisimulator/sdl/button.c')
-rw-r--r-- | uisimulator/sdl/button.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 03f7dc1e96..15764da900 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c | |||
@@ -883,14 +883,16 @@ void button_event(int key, bool pressed) | |||
883 | #ifdef HAVE_BACKLIGHT | 883 | #ifdef HAVE_BACKLIGHT |
884 | #ifdef HAVE_REMOTE_LCD | 884 | #ifdef HAVE_REMOTE_LCD |
885 | if (btn & BUTTON_REMOTE) { | 885 | if (btn & BUTTON_REMOTE) { |
886 | if (!remote_filter_first_keypress || is_remote_backlight_on()) | 886 | if (!remote_filter_first_keypress |
887 | || is_remote_backlight_on(false)) | ||
887 | queue_post(&button_queue, btn, data); | 888 | queue_post(&button_queue, btn, data); |
888 | else | 889 | else |
889 | skip_remote_release = true; | 890 | skip_remote_release = true; |
890 | } | 891 | } |
891 | else | 892 | else |
892 | #endif | 893 | #endif |
893 | if (!filter_first_keypress || is_backlight_on()) | 894 | if (!filter_first_keypress |
895 | || is_backlight_on(false)) | ||
894 | queue_post(&button_queue, btn, data); | 896 | queue_post(&button_queue, btn, data); |
895 | else | 897 | else |
896 | skip_release = true; | 898 | skip_release = true; |