diff options
Diffstat (limited to 'uisimulator/common/lcd-common.c')
-rw-r--r-- | uisimulator/common/lcd-common.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/uisimulator/common/lcd-common.c b/uisimulator/common/lcd-common.c index 9e01f3eda6..c33e058858 100644 --- a/uisimulator/common/lcd-common.c +++ b/uisimulator/common/lcd-common.c | |||
@@ -26,6 +26,10 @@ | |||
26 | #include "config.h" | 26 | #include "config.h" |
27 | #include "system.h" | 27 | #include "system.h" |
28 | #include "lcd.h" | 28 | #include "lcd.h" |
29 | #if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_ENABLE) | ||
30 | /* in uisimulator/sdl/lcd-bitmap.c and lcd-charcell.c */ | ||
31 | extern void sim_backlight(int value); | ||
32 | #endif | ||
29 | 33 | ||
30 | #ifdef HAVE_LCD_ENABLE | 34 | #ifdef HAVE_LCD_ENABLE |
31 | static bool lcd_enabled = false; | 35 | static bool lcd_enabled = false; |
@@ -78,7 +82,7 @@ void lcd_remote_set_invert_display(bool invert) | |||
78 | void lcd_sleep(void) | 82 | void lcd_sleep(void) |
79 | { | 83 | { |
80 | lcd_sleeping = true; | 84 | lcd_sleeping = true; |
81 | #ifdef HAVE_TRANSFLECTIVE_LCD | 85 | #if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_ENABLE) |
82 | sim_backlight(0); /* completely blacken the screen */ | 86 | sim_backlight(0); /* completely blacken the screen */ |
83 | #endif | 87 | #endif |
84 | } | 88 | } |