diff options
author | Sebastian Leonhardt <sebastian.leonhardt@web.de> | 2019-02-08 15:02:21 +0100 |
---|---|---|
committer | Sebastian Leonhardt <sebastian.leonhardt@web.de> | 2019-02-08 15:06:16 +0100 |
commit | ed269affb5e13c97f8281331fd42221419ea87df (patch) | |
tree | 4c03e6a39aa44a013e5d77b8947e6adf01e81221 | |
parent | 168e2424988c8142da8ebb29ae633440062d4b16 (diff) | |
download | rockbox-ed269af.tar.gz rockbox-ed269af.zip |
Fix simulator/transflective: Display wasn't enabled on first keypress when backlight always off
Change-Id: Ibfa09e7bf839d4d12ef01e4812b5c47c9e32a3be
-rw-r--r-- | uisimulator/common/lcd-common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/uisimulator/common/lcd-common.c b/uisimulator/common/lcd-common.c index a03b9c711f..0c8e0dcad5 100644 --- a/uisimulator/common/lcd-common.c +++ b/uisimulator/common/lcd-common.c @@ -82,7 +82,7 @@ void lcd_remote_set_invert_display(bool invert) void lcd_sleep(void) { lcd_sleeping = true; -#if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_SLEEP) +#ifdef HAVE_TRANSFLECTIVE_LCD sim_backlight(0); /* completely blacken the screen */ #endif } @@ -93,6 +93,9 @@ void lcd_awake(void) { send_event(LCD_EVENT_ACTIVATION, NULL); lcd_sleeping = false; +#ifdef HAVE_TRANSFLECTIVE_LCD + sim_backlight(0); /* Make LCD visible again */ +#endif } } #endif |