diff options
Diffstat (limited to 'uisimulator/common')
-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) | |||
82 | void lcd_sleep(void) | 82 | void lcd_sleep(void) |
83 | { | 83 | { |
84 | lcd_sleeping = true; | 84 | lcd_sleeping = true; |
85 | #if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_SLEEP) | 85 | #ifdef HAVE_TRANSFLECTIVE_LCD |
86 | sim_backlight(0); /* completely blacken the screen */ | 86 | sim_backlight(0); /* completely blacken the screen */ |
87 | #endif | 87 | #endif |
88 | } | 88 | } |
@@ -93,6 +93,9 @@ void lcd_awake(void) | |||
93 | { | 93 | { |
94 | send_event(LCD_EVENT_ACTIVATION, NULL); | 94 | send_event(LCD_EVENT_ACTIVATION, NULL); |
95 | lcd_sleeping = false; | 95 | lcd_sleeping = false; |
96 | #ifdef HAVE_TRANSFLECTIVE_LCD | ||
97 | sim_backlight(0); /* Make LCD visible again */ | ||
98 | #endif | ||
96 | } | 99 | } |
97 | } | 100 | } |
98 | #endif | 101 | #endif |