mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix the fix
Change-Id: I54b97fd0c208f775e4ee22cf8499f1da423ebc39
This commit is contained in:
parent
26e0c64e34
commit
168e242498
2 changed files with 3 additions and 3 deletions
|
@ -162,7 +162,7 @@ void sim_backlight(int value)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#else /* LCD_DEPTH > 8 */
|
#else /* LCD_DEPTH > 8 */
|
||||||
#if defined(HAVE_TRANSFLECTIVE_LCD ) && defined(HAVE_LCD_SLEEP)
|
#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,7 +26,7 @@
|
||||||
#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)
|
#if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_SLEEP)
|
||||||
/* in uisimulator/sdl/lcd-bitmap.c and lcd-charcell.c */
|
/* in uisimulator/sdl/lcd-bitmap.c and lcd-charcell.c */
|
||||||
extern void sim_backlight(int value);
|
extern void sim_backlight(int value);
|
||||||
#endif
|
#endif
|
||||||
|
@ -82,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;
|
||||||
#if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_ENABLE)
|
#if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_SLEEP)
|
||||||
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