diff options
| author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-15 12:42:09 +0000 |
|---|---|---|
| committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-15 12:42:09 +0000 |
| commit | cb53e3cef44ec214836b9545a748cf5b84bec3ad (patch) | |
| tree | ec78d20fec3be9bb00c4f13c166a972a4d689ff0 /apps/plugins/oscilloscope.c | |
| parent | f2b5c292341768aa6ff954e4b0a817e877c66a12 (diff) | |
| download | rockbox-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/oscilloscope.c')
| -rw-r--r-- | apps/plugins/oscilloscope.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c index 3291580..6ef398a 100644 --- a/apps/plugins/oscilloscope.c +++ b/apps/plugins/oscilloscope.c @@ -20,6 +20,7 @@ ****************************************************************************/ #include "plugin.h" +#include "helper.h" #ifdef HAVE_LCD_BITMAP #include "xlcd.h" @@ -562,9 +563,8 @@ void cleanup(void *parameter) rb->lcd_set_foreground(LCD_DEFAULT_FG); rb->lcd_set_background(LCD_DEFAULT_BG); #endif -#ifdef HAVE_LCD_COLOR - rb->backlight_set_timeout(rb->global_settings->backlight_timeout); -#endif + /* Turn on backlight timeout (revert to settings) */ + backlight_use_settings(); /* backlight control in lib/helper.c */ } enum plugin_status plugin_start(struct plugin_api* api, void* parameter) @@ -593,9 +593,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) rb->lcd_clear_display(); rb->lcd_update(); #endif -#ifdef HAVE_LCD_COLOR - rb->backlight_set_timeout(1); /* keep the light on */ -#endif + + /* Turn off backlight timeout */ + backlight_force_on(); /* backlight control in lib/helper.c */ + rb->lcd_getstringsize("A", NULL, &font_height); while (!exit) |