summaryrefslogtreecommitdiff
path: root/apps/plugins/grayscale.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-08-15 12:42:09 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-08-15 12:42:09 +0000
commitcb53e3cef44ec214836b9545a748cf5b84bec3ad (patch)
treeec78d20fec3be9bb00c4f13c166a972a4d689ff0 /apps/plugins/grayscale.c
parentf2b5c292341768aa6ff954e4b0a817e877c66a12 (diff)
downloadrockbox-cb53e3cef44ec214836b9545a748cf5b84bec3ad.zip
rockbox-cb53e3cef44ec214836b9545a748cf5b84bec3ad.tar.gz
rockbox-cb53e3cef44ec214836b9545a748cf5b84bec3ad.tar.bz2
rockbox-cb53e3cef44ec214836b9545a748cf5b84bec3ad.tar.xz
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
Diffstat (limited to 'apps/plugins/grayscale.c')
-rw-r--r--apps/plugins/grayscale.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/grayscale.c b/apps/plugins/grayscale.c
index 5e50020..d28237d 100644
--- a/apps/plugins/grayscale.c
+++ b/apps/plugins/grayscale.c
@@ -20,6 +20,7 @@
****************************************************************************/
#include "plugin.h"
+#include "helper.h"
#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4)
#include "gray.h"
@@ -85,8 +86,8 @@ void cleanup(void *parameter)
(void)parameter;
gray_release(); /* switch off overlay and deinitialize */
- /* restore normal backlight setting */
- 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 */
}
/* this is only a demo of what the framework can do */
@@ -170,8 +171,8 @@ int main(void)
110,110,110,110,110,110,110
};
- 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 */
rb->lcd_setfont(FONT_SYSFIXED); /* select default font */