summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer/jpeg/jpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/imageviewer/jpeg/jpeg.c')
-rw-r--r--apps/plugins/imageviewer/jpeg/jpeg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/imageviewer/jpeg/jpeg.c b/apps/plugins/imageviewer/jpeg/jpeg.c
index 3d8c9c3ac8..c231209beb 100644
--- a/apps/plugins/imageviewer/jpeg/jpeg.c
+++ b/apps/plugins/imageviewer/jpeg/jpeg.c
@@ -170,8 +170,12 @@ static int load_image(char *filename, struct image_info *info,
170 170
171 if (status < 0 || (status & (DQT | SOF0)) != (DQT | SOF0)) 171 if (status < 0 || (status & (DQT | SOF0)) != (DQT | SOF0))
172 { /* bad format or minimum components not contained */ 172 { /* bad format or minimum components not contained */
173#ifndef HAVE_LCD_COLOR
173 rb->splashf(HZ, "unsupported %d", status); 174 rb->splashf(HZ, "unsupported %d", status);
174 return PLUGIN_ERROR; 175 return PLUGIN_ERROR;
176#else
177 return PLUGIN_JPEG_PROGRESSIVE;
178#endif
175 } 179 }
176 180
177 if (!(status & DHT)) /* if no Huffman table present: */ 181 if (!(status & DHT)) /* if no Huffman table present: */