diff options
-rw-r--r-- | apps/plugins/jpeg.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c index 5656aee7eb..890ee8e252 100644 --- a/apps/plugins/jpeg.c +++ b/apps/plugins/jpeg.c | |||
@@ -2785,12 +2785,26 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
2785 | 2785 | ||
2786 | buf_images = buf; buf_images_size = buf_size; | 2786 | buf_images = buf; buf_images_size = buf_size; |
2787 | 2787 | ||
2788 | /* make sure the backlight is always on when viewing pictures | ||
2789 | (actually it should also set the timeout when plugged in, | ||
2790 | but the function backlight_set_timeout_plugged is not | ||
2791 | available in plugins) */ | ||
2792 | #ifdef CONFIG_BACKLIGHT | ||
2793 | if (rb->global_settings->backlight_timeout > 0) | ||
2794 | rb->backlight_set_timeout(1); | ||
2795 | #endif | ||
2796 | |||
2788 | do | 2797 | do |
2789 | { | 2798 | { |
2790 | condition = load_and_show(np_file); | 2799 | condition = load_and_show(np_file); |
2791 | }while (condition != PLUGIN_OK && condition != PLUGIN_USB_CONNECTED | 2800 | }while (condition != PLUGIN_OK && condition != PLUGIN_USB_CONNECTED |
2792 | && condition != PLUGIN_ERROR); | 2801 | && condition != PLUGIN_ERROR); |
2793 | 2802 | ||
2803 | #ifdef CONFIG_BACKLIGHT | ||
2804 | /* reset backlight settings */ | ||
2805 | rb->backlight_set_timeout(rb->global_settings->backlight_timeout); | ||
2806 | #endif | ||
2807 | |||
2794 | #ifdef USEGSLIB | 2808 | #ifdef USEGSLIB |
2795 | gray_release(); /* deinitialize */ | 2809 | gray_release(); /* deinitialize */ |
2796 | #endif | 2810 | #endif |