summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/hosted/sdl/lcd-bitmap.c2
-rw-r--r--uisimulator/common/lcd-common.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/hosted/sdl/lcd-bitmap.c b/firmware/target/hosted/sdl/lcd-bitmap.c
index 0453435c09..ea30afea3b 100644
--- a/firmware/target/hosted/sdl/lcd-bitmap.c
+++ b/firmware/target/hosted/sdl/lcd-bitmap.c
@@ -162,7 +162,7 @@ void sim_backlight(int value)
162#endif 162#endif
163 } 163 }
164#else /* LCD_DEPTH > 8 */ 164#else /* LCD_DEPTH > 8 */
165#if defined(HAVE_TRANSFLECTIVE_LCD ) && defined(HAVE_LCD_SLEEP) 165#if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_SLEEP)
166 if (!lcd_active()) 166 if (!lcd_active())
167 SDL_SetAlpha(lcd_surface, SDL_SRCALPHA, 0); 167 SDL_SetAlpha(lcd_surface, SDL_SRCALPHA, 0);
168 else 168 else
diff --git a/uisimulator/common/lcd-common.c b/uisimulator/common/lcd-common.c
index c33e058858..a03b9c711f 100644
--- a/uisimulator/common/lcd-common.c
+++ b/uisimulator/common/lcd-common.c
@@ -26,7 +26,7 @@
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) 29#if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_SLEEP)
30/* in uisimulator/sdl/lcd-bitmap.c and lcd-charcell.c */ 30/* in uisimulator/sdl/lcd-bitmap.c and lcd-charcell.c */
31extern void sim_backlight(int value); 31extern void sim_backlight(int value);
32#endif 32#endif
@@ -82,7 +82,7 @@ void lcd_remote_set_invert_display(bool invert)
82void lcd_sleep(void) 82void lcd_sleep(void)
83{ 83{
84 lcd_sleeping = true; 84 lcd_sleeping = true;
85#if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_ENABLE) 85#if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_SLEEP)
86 sim_backlight(0); /* completely blacken the screen */ 86 sim_backlight(0); /* completely blacken the screen */
87#endif 87#endif
88} 88}