summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-03-21 07:05:05 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-03-21 07:05:05 +0000
commita5c5bd38311e4e99ae3eeb0ab9f5108355573554 (patch)
tree0ebaadd600957bbafd17bbe775137100dfb4302c /apps/plugin.c
parent59649b888aea82dc02525c7e133a86c83f2240d1 (diff)
downloadrockbox-a5c5bd38311e4e99ae3eeb0ab9f5108355573554.zip
rockbox-a5c5bd38311e4e99ae3eeb0ab9f5108355573554.tar.gz
rockbox-a5c5bd38311e4e99ae3eeb0ab9f5108355573554.tar.bz2
rockbox-a5c5bd38311e4e99ae3eeb0ab9f5108355573554.tar.xz
Add a setting to force the backlight to stay on (or act normally) when
in plugins. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12873 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 1a5ee4e..851ce5d 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -609,10 +609,17 @@ int plugin_load(const char* plugin, void* parameter)
#endif
invalidate_icache();
-
+#if CONFIG_BACKLIGHT
+ if (global_settings.backlight_in_plugins == 1)
+ backlight_set_timeout(1);
+#endif
rc = hdr->entry_point((struct plugin_api*) &rockbox_api, parameter);
/* explicitly casting the pointer here to avoid touching every plugin. */
-
+#if CONFIG_BACKLIGHT
+ if (global_settings.backlight_in_plugins == 1)
+ backlight_set_timeout(global_settings.backlight_timeout);
+#endif
+
button_clear_queue();
#ifdef HAVE_LCD_BITMAP