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
|
@ -262,10 +262,12 @@ static void polygons_draw(struct polygon_fifo * polygons, struct screen * displa
|
|||
|
||||
static void cleanup(void)
|
||||
{
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_use_settings();
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
remote_backlight_use_settings();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
|
@ -436,9 +438,11 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
#if LCD_DEPTH > 1
|
||||
rb->lcd_set_backdrop(NULL);
|
||||
#endif
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_ignore_timeout();
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
remote_backlight_ignore_timeout();
|
||||
#endif
|
||||
#endif
|
||||
ret = plugin_main();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue