summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorSebastian Leonhardt <sebastian.leonhardt@web.de>2018-04-04 16:28:53 +0200
committerSolomon Peachy <pizza@shaftnet.org>2019-02-07 22:52:07 +0100
commit666405f346bef501a6707c4b152704f5c34246c6 (patch)
tree7dcf80583d3a9978eac5634c9558c461b7a71690 /uisimulator
parent287685932e53849192020092bce7d7a21d9e2a71 (diff)
downloadrockbox-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.c3
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)
78void lcd_sleep(void) 78void 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
83void lcd_awake(void) 86void lcd_awake(void)