summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/backlight.h4
-rw-r--r--firmware/target/hosted/sdl/lcd-bitmap.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h
index 326de4ce28..6d029790b3 100644
--- a/firmware/export/backlight.h
+++ b/firmware/export/backlight.h
@@ -64,10 +64,6 @@ void lcd_set_sleep_after_backlight_off(int timeout_seconds);
64void lcd_awake(void); 64void lcd_awake(void);
65#endif 65#endif
66 66
67#ifdef HAVE_LCD_SLEEP
68void lcd_awake(void);
69#endif
70
71#else /* !HAVE_BACKLIGHT */ 67#else /* !HAVE_BACKLIGHT */
72#define backlight_init() 68#define backlight_init()
73#endif /* !HAVE_BACKLIGHT */ 69#endif /* !HAVE_BACKLIGHT */
diff --git a/firmware/target/hosted/sdl/lcd-bitmap.c b/firmware/target/hosted/sdl/lcd-bitmap.c
index aefbb17b42..0453435c09 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#ifdef HAVE_TRANSFLECTIVE_LCD 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