forked from len0rd/rockbox
Fix some plugins not using the helper functions for the new backlight timeout handling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15849 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
feb75d43c8
commit
bf2a33485f
8 changed files with 71 additions and 37 deletions
|
|
@ -60,6 +60,7 @@
|
|||
|
||||
#include "plugin.h"
|
||||
#include "pluginlib_actions.h"
|
||||
#include "helper.h"
|
||||
|
||||
PLUGIN_HEADER
|
||||
|
||||
|
|
@ -405,7 +406,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
(void)parameter;
|
||||
rb = api;
|
||||
|
||||
rb->backlight_set_timeout(1);
|
||||
backlight_force_on(rb); /* backlight control in lib/helper.c */
|
||||
#if LCD_DEPTH > 1
|
||||
rb->lcd_set_backdrop(NULL);
|
||||
rb->lcd_set_background(LCD_DEFAULT_BG);
|
||||
|
|
@ -482,7 +483,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
rb->yield();
|
||||
}
|
||||
|
||||
rb->backlight_set_timeout(rb->global_settings->backlight_timeout);
|
||||
backlight_use_settings(rb); /* backlight control in lib/helper.c */
|
||||
return PLUGIN_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue