diff options
author | Sebastian Leonhardt <sebastian.leonhardt@web.de> | 2018-04-04 16:28:53 +0200 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2019-02-07 22:52:07 +0100 |
commit | 666405f346bef501a6707c4b152704f5c34246c6 (patch) | |
tree | 7dcf80583d3a9978eac5634c9558c461b7a71690 /uisimulator | |
parent | 287685932e53849192020092bce7d7a21d9e2a71 (diff) | |
download | rockbox-666405f346bef501a6707c4b152704f5c34246c6.tar.gz rockbox-666405f346bef501a6707c4b152704f5c34246c6.zip |
Simulator: improve simulation of transflective screens
This patch simulates the three possible states of a transflective
LCD: backlight on (bright screen as usual), backlight off (dimmed
screen) and LCD off (black screen).
Makes use of already defined 'BACKLIGHT_OFF_ALPHA'.
Change-Id: I9b0fc79b8d50c29e024ba1e6d9c2501119a7e0e0
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/common/lcd-common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/uisimulator/common/lcd-common.c b/uisimulator/common/lcd-common.c index 47ca114cbc..9e01f3eda6 100644 --- a/uisimulator/common/lcd-common.c +++ b/uisimulator/common/lcd-common.c | |||
@@ -78,6 +78,9 @@ void lcd_remote_set_invert_display(bool invert) | |||
78 | void lcd_sleep(void) | 78 | void lcd_sleep(void) |
79 | { | 79 | { |
80 | lcd_sleeping = true; | 80 | lcd_sleeping = true; |
81 | #ifdef HAVE_TRANSFLECTIVE_LCD | ||
82 | sim_backlight(0); /* completely blacken the screen */ | ||
83 | #endif | ||
81 | } | 84 | } |
82 | 85 | ||
83 | void lcd_awake(void) | 86 | void lcd_awake(void) |