mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
plugins: More HAVE_BACKLIGHT cleanup
Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
This commit is contained in:
parent
2127906384
commit
9be5bc4cf0
30 changed files with 149 additions and 44 deletions
|
@ -1204,8 +1204,10 @@ static void osd_lcd_enable_hook(unsigned short id, void* param)
|
|||
static void osdbacklight_hw_on_video_mode(bool video_on)
|
||||
{
|
||||
if (video_on) {
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
/* Turn off backlight timeout */
|
||||
backlight_ignore_timeout();
|
||||
#endif
|
||||
#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
|
||||
rb->remove_event(LCD_EVENT_ACTIVATION, osd_lcd_enable_hook);
|
||||
#endif
|
||||
|
@ -1213,8 +1215,10 @@ static void osdbacklight_hw_on_video_mode(bool video_on)
|
|||
#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
|
||||
rb->add_event(LCD_EVENT_ACTIVATION, osd_lcd_enable_hook);
|
||||
#endif
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
/* Revert to user's backlight settings */
|
||||
backlight_use_settings();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue