summaryrefslogtreecommitdiff
path: root/apps/plugins/grayscale.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-08-16 23:01:18 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-08-16 23:01:18 +0000
commit767c0ec5894f1acaad5e0def12d628c6f21bcf87 (patch)
treea2fbd9ac23adc395d4587a6c9cb85ba4cc001cb8 /apps/plugins/grayscale.c
parent735ab889d2bd41fdc8a5bf22d7ce5ed724d58474 (diff)
downloadrockbox-767c0ec5894f1acaad5e0def12d628c6f21bcf87.zip
rockbox-767c0ec5894f1acaad5e0def12d628c6f21bcf87.tar.gz
rockbox-767c0ec5894f1acaad5e0def12d628c6f21bcf87.tar.bz2
rockbox-767c0ec5894f1acaad5e0def12d628c6f21bcf87.tar.xz
Pass plugin api pointer to funtion directly, fixes crashes when doing incremental builds. Fix incorrect backlight changes in rockblox introduced recently.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14373 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/grayscale.c')
-rw-r--r--apps/plugins/grayscale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/grayscale.c b/apps/plugins/grayscale.c
index d28237d..cc07ff3 100644
--- a/apps/plugins/grayscale.c
+++ b/apps/plugins/grayscale.c
@@ -87,7 +87,7 @@ void cleanup(void *parameter)
gray_release(); /* switch off overlay and deinitialize */
/* Turn on backlight timeout (revert to settings) */
- backlight_use_settings(); /* backlight control in lib/helper.c */
+ backlight_use_settings(rb); /* backlight control in lib/helper.c */
}
/* this is only a demo of what the framework can do */
@@ -172,7 +172,7 @@ int main(void)
};
/* Turn off backlight timeout */
- backlight_force_on(); /* backlight control in lib/helper.c */
+ backlight_force_on(rb); /* backlight control in lib/helper.c */
rb->lcd_setfont(FONT_SYSFIXED); /* select default font */