forked from len0rd/rockbox
Fix simulator/transflective: Display wasn't enabled on first keypress when backlight always off
Change-Id: Ibfa09e7bf839d4d12ef01e4812b5c47c9e32a3be
This commit is contained in:
parent
168e242498
commit
ed269affb5
1 changed files with 4 additions and 1 deletions
|
@ -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_SLEEP)
|
#ifdef HAVE_TRANSFLECTIVE_LCD
|
||||||
sim_backlight(0); /* completely blacken the screen */
|
sim_backlight(0); /* completely blacken the screen */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -93,6 +93,9 @@ void lcd_awake(void)
|
||||||
{
|
{
|
||||||
send_event(LCD_EVENT_ACTIVATION, NULL);
|
send_event(LCD_EVENT_ACTIVATION, NULL);
|
||||||
lcd_sleeping = false;
|
lcd_sleeping = false;
|
||||||
|
#ifdef HAVE_TRANSFLECTIVE_LCD
|
||||||
|
sim_backlight(0); /* Make LCD visible again */
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue