forked from len0rd/rockbox
Bring mpegplayer backlight fix to the other plugins, this also fixes some wrongly ifdef'd backlight calls.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14352 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f2b5c29234
commit
cb53e3cef4
19 changed files with 100 additions and 87 deletions
|
@ -16,6 +16,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "plugin.h"
|
||||
#include "helper.h"
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP /* and also not for the Player */
|
||||
|
||||
|
@ -364,7 +365,8 @@ int plugin_main(void)
|
|||
#endif
|
||||
case(STARFIELD_QUIT):
|
||||
case(SYS_USB_CONNECTED):
|
||||
rb->backlight_set_timeout(rb->global_settings->backlight_timeout);
|
||||
/* Turn on backlight timeout (revert to settings) */
|
||||
backlight_use_settings(); /* backlight control in lib/helper.c*/
|
||||
return PLUGIN_OK;
|
||||
break;
|
||||
}
|
||||
|
@ -379,8 +381,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
|
||||
rb = api; /* copy to global api pointer */
|
||||
(void)parameter;
|
||||
if (rb->global_settings->backlight_timeout > 0)
|
||||
rb->backlight_set_timeout(1);/* keep the light on */
|
||||
/* Turn off backlight timeout */
|
||||
backlight_force_on(); /* backlight control in lib/helper.c */
|
||||
|
||||
ret = plugin_main();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue