summaryrefslogtreecommitdiff
path: root/apps/plugins/jpeg.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/jpeg.c
parent735ab889d2bd41fdc8a5bf22d7ce5ed724d58474 (diff)
downloadrockbox-767c0ec5894f1acaad5e0def12d628c6f21bcf87.tar.gz
rockbox-767c0ec5894f1acaad5e0def12d628c6f21bcf87.zip
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/jpeg.c')
-rw-r--r--apps/plugins/jpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c
index b4f85f5a16..2c8942f8bc 100644
--- a/apps/plugins/jpeg.c
+++ b/apps/plugins/jpeg.c
@@ -3311,7 +3311,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
3311 buf_images = buf; buf_images_size = buf_size; 3311 buf_images = buf; buf_images_size = buf_size;
3312 3312
3313 /* Turn off backlight timeout */ 3313 /* Turn off backlight timeout */
3314 backlight_force_on(); /* backlight control in lib/helper.c */ 3314 backlight_force_on(rb); /* backlight control in lib/helper.c */
3315 3315
3316 do 3316 do
3317 { 3317 {
@@ -3335,7 +3335,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
3335#endif 3335#endif
3336 3336
3337 /* Turn on backlight timeout (revert to settings) */ 3337 /* Turn on backlight timeout (revert to settings) */
3338 backlight_use_settings(); /* backlight control in lib/helper.c */ 3338 backlight_use_settings(rb); /* backlight control in lib/helper.c */
3339 3339
3340#ifdef USEGSLIB 3340#ifdef USEGSLIB
3341 gray_release(); /* deinitialize */ 3341 gray_release(); /* deinitialize */