mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix red and remove duplicated function declaration
Change-Id: I5fed7fdad077eedfc1e36fbd9e1669f11b90288d
This commit is contained in:
parent
e662ae4e9e
commit
26e0c64e34
3 changed files with 6 additions and 6 deletions
|
@ -64,10 +64,6 @@ void lcd_set_sleep_after_backlight_off(int timeout_seconds);
|
||||||
void lcd_awake(void);
|
void lcd_awake(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LCD_SLEEP
|
|
||||||
void lcd_awake(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#else /* !HAVE_BACKLIGHT */
|
#else /* !HAVE_BACKLIGHT */
|
||||||
#define backlight_init()
|
#define backlight_init()
|
||||||
#endif /* !HAVE_BACKLIGHT */
|
#endif /* !HAVE_BACKLIGHT */
|
||||||
|
|
|
@ -162,7 +162,7 @@ void sim_backlight(int value)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#else /* LCD_DEPTH > 8 */
|
#else /* LCD_DEPTH > 8 */
|
||||||
#ifdef HAVE_TRANSFLECTIVE_LCD
|
#if defined(HAVE_TRANSFLECTIVE_LCD ) && defined(HAVE_LCD_SLEEP)
|
||||||
if (!lcd_active())
|
if (!lcd_active())
|
||||||
SDL_SetAlpha(lcd_surface, SDL_SRCALPHA, 0);
|
SDL_SetAlpha(lcd_surface, SDL_SRCALPHA, 0);
|
||||||
else
|
else
|
||||||
|
|
|
@ -26,6 +26,10 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
|
#if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_ENABLE)
|
||||||
|
/* in uisimulator/sdl/lcd-bitmap.c and lcd-charcell.c */
|
||||||
|
extern void sim_backlight(int value);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LCD_ENABLE
|
#ifdef HAVE_LCD_ENABLE
|
||||||
static bool lcd_enabled = false;
|
static bool lcd_enabled = false;
|
||||||
|
@ -78,7 +82,7 @@ void lcd_remote_set_invert_display(bool invert)
|
||||||
void lcd_sleep(void)
|
void lcd_sleep(void)
|
||||||
{
|
{
|
||||||
lcd_sleeping = true;
|
lcd_sleeping = true;
|
||||||
#ifdef HAVE_TRANSFLECTIVE_LCD
|
#if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_ENABLE)
|
||||||
sim_backlight(0); /* completely blacken the screen */
|
sim_backlight(0); /* completely blacken the screen */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue