summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-08-15 18:25:03 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-08-15 18:25:03 +0000
commitba8ec4a605c1415bc1ad63cb95c598bfde5e3e9a (patch)
tree31c9197ea986ea07620ccf4b51fe672fe5b09523
parentc68e3cc3d6c071e774d40272963d6c3365afb154 (diff)
downloadrockbox-ba8ec4a605c1415bc1ad63cb95c598bfde5e3e9a.tar.gz
rockbox-ba8ec4a605c1415bc1ad63cb95c598bfde5e3e9a.zip
Ignore HAVE_BACKLIGHT for plugins, as they build without the check and makes life easier for ondio owners.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14360 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/lib/helper.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/apps/plugins/lib/helper.c b/apps/plugins/lib/helper.c
index 2149b935bf..42c9deca70 100644
--- a/apps/plugins/lib/helper.c
+++ b/apps/plugins/lib/helper.c
@@ -22,27 +22,35 @@
22/* the plugin must declare the plugin_api struct pointer itself */ 22/* the plugin must declare the plugin_api struct pointer itself */
23extern struct plugin_api* rb; 23extern struct plugin_api* rb;
24 24
25/* force the backlight on */ 25/*
26 * force the backlight on
27 * now enabled regardless of HAVE_BACKLIGHT because it is not needed to
28 * build and makes modded targets easier to update
29 */
26void backlight_force_on(void) 30void backlight_force_on(void)
27{ 31{
28#ifdef HAVE_BACKLIGHT 32/* #ifdef HAVE_BACKLIGHT */
29 if (rb->global_settings->backlight_timeout > 1) 33 if (rb->global_settings->backlight_timeout > 1)
30 rb->backlight_set_timeout(1); 34 rb->backlight_set_timeout(1);
31#if CONFIG_CHARGING 35#if CONFIG_CHARGING
32 if (rb->global_settings->backlight_timeout_plugged > 1) 36 if (rb->global_settings->backlight_timeout_plugged > 1)
33 rb->backlight_set_timeout_plugged(1); 37 rb->backlight_set_timeout_plugged(1);
34#endif /* CONFIG_CHARGING */ 38#endif /* CONFIG_CHARGING */
35#endif /* HAVE_BACKLIGHT */ 39/* #endif */ /* HAVE_BACKLIGHT */
36} 40}
37 41
38/* reset backlight operation to its settings */ 42/*
43 * reset backlight operation to its settings
44 * now enabled regardless of HAVE_BACKLIGHT because it is not needed to
45 * build and makes modded targets easier to update
46 */
39void backlight_use_settings(void) 47void backlight_use_settings(void)
40{ 48{
41#ifdef HAVE_BACKLIGHT 49/* #ifdef HAVE_BACKLIGHT */
42 rb->backlight_set_timeout(rb->global_settings->backlight_timeout); 50 rb->backlight_set_timeout(rb->global_settings->backlight_timeout);
43#if CONFIG_CHARGING 51#if CONFIG_CHARGING
44 rb->backlight_set_timeout_plugged(rb->global_settings-> \ 52 rb->backlight_set_timeout_plugged(rb->global_settings-> \
45 backlight_timeout_plugged); 53 backlight_timeout_plugged);
46#endif /* CONFIG_CHARGING */ 54#endif /* CONFIG_CHARGING */
47#endif /* HAVE_BACKLIGHT */ 55/* #endif */ /* HAVE_BACKLIGHT */
48} 56}