diff options
| author | Sebastian Leonhardt <sebastian.leonhardt@web.de> | 2019-02-07 23:31:38 +0100 |
|---|---|---|
| committer | Sebastian Leonhardt <sebastian.leonhardt@web.de> | 2019-02-08 00:04:20 +0100 |
| commit | 26e0c64e34f05d3869a7e5e26d7dd388888fa72e (patch) | |
| tree | 3c3a1f45740aec48d356887b7a28462fae4dcbe7 /firmware | |
| parent | e662ae4e9e6feb754a909691847e76544282f319 (diff) | |
| download | rockbox-26e0c64e34f05d3869a7e5e26d7dd388888fa72e.zip rockbox-26e0c64e34f05d3869a7e5e26d7dd388888fa72e.tar.gz rockbox-26e0c64e34f05d3869a7e5e26d7dd388888fa72e.tar.bz2 rockbox-26e0c64e34f05d3869a7e5e26d7dd388888fa72e.tar.xz | |
Fix red and remove duplicated function declaration
Change-Id: I5fed7fdad077eedfc1e36fbd9e1669f11b90288d
Diffstat (limited to 'firmware')
| -rw-r--r-- | firmware/export/backlight.h | 4 | ||||
| -rw-r--r-- | firmware/target/hosted/sdl/lcd-bitmap.c | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index 326de4c..6d02979 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); void lcd_awake(void); #endif -#ifdef HAVE_LCD_SLEEP -void lcd_awake(void); -#endif - #else /* !HAVE_BACKLIGHT */ #define backlight_init() #endif /* !HAVE_BACKLIGHT */ diff --git a/firmware/target/hosted/sdl/lcd-bitmap.c b/firmware/target/hosted/sdl/lcd-bitmap.c index aefbb17..0453435 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) #endif } #else /* LCD_DEPTH > 8 */ -#ifdef HAVE_TRANSFLECTIVE_LCD +#if defined(HAVE_TRANSFLECTIVE_LCD ) && defined(HAVE_LCD_SLEEP) if (!lcd_active()) SDL_SetAlpha(lcd_surface, SDL_SRCALPHA, 0); else |