From a5c5bd38311e4e99ae3eeb0ab9f5108355573554 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 21 Mar 2007 07:05:05 +0000 Subject: 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 --- apps/plugin.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'apps/plugin.c') 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 -- cgit v1.1