summaryrefslogtreecommitdiff
path: root/apps/plugins/jpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/jpeg.c')
-rw-r--r--apps/plugins/jpeg.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c
index f96c954e54..c6cb2701c0 100644
--- a/apps/plugins/jpeg.c
+++ b/apps/plugins/jpeg.c
@@ -2083,7 +2083,7 @@ int change_filename(int direct)
2083 2083
2084 if(count == entries && file_pt[curfile] == '\0') 2084 if(count == entries && file_pt[curfile] == '\0')
2085 { 2085 {
2086 rb->splash(HZ,true,"No supported files"); 2086 rb->splash(HZ, "No supported files");
2087 return PLUGIN_ERROR; 2087 return PLUGIN_ERROR;
2088 } 2088 }
2089 if(rb->strlen(tree->currdir) > 1) 2089 if(rb->strlen(tree->currdir) > 1)
@@ -2557,7 +2557,7 @@ struct t_disp* get_image(struct jpeg* p_jpg, int ds)
2557#endif 2557#endif
2558 if (status) 2558 if (status)
2559 { 2559 {
2560 rb->splash(HZ, true, "decode error %d", status); 2560 rb->splash(HZ, "decode error %d", status);
2561 file_pt[curfile] = '\0'; 2561 file_pt[curfile] = '\0';
2562 return NULL; 2562 return NULL;
2563 } 2563 }
@@ -2619,7 +2619,7 @@ int load_and_show(char* filename)
2619 if (fd < 0) 2619 if (fd < 0)
2620 { 2620 {
2621 rb->snprintf(print,sizeof(print),"err opening %s:%d",filename,fd); 2621 rb->snprintf(print,sizeof(print),"err opening %s:%d",filename,fd);
2622 rb->splash(HZ, true, print); 2622 rb->splash(HZ, print);
2623 return PLUGIN_ERROR; 2623 return PLUGIN_ERROR;
2624 } 2624 }
2625 filesize = rb->filesize(fd); 2625 filesize = rb->filesize(fd);
@@ -2696,7 +2696,7 @@ int load_and_show(char* filename)
2696 else 2696 else
2697#endif 2697#endif
2698 { 2698 {
2699 rb->splash(HZ, true, "Out of Memory"); 2699 rb->splash(HZ, "Out of Memory");
2700 rb->close(fd); 2700 rb->close(fd);
2701 return PLUGIN_ERROR; 2701 return PLUGIN_ERROR;
2702 } 2702 }
@@ -2743,7 +2743,7 @@ int load_and_show(char* filename)
2743 2743
2744 if (status < 0 || (status & (DQT | SOF0)) != (DQT | SOF0)) 2744 if (status < 0 || (status & (DQT | SOF0)) != (DQT | SOF0))
2745 { /* bad format or minimum components not contained */ 2745 { /* bad format or minimum components not contained */
2746 rb->splash(HZ, true, "unsupported %d", status); 2746 rb->splash(HZ, "unsupported %d", status);
2747 file_pt[curfile] = '\0'; 2747 file_pt[curfile] = '\0';
2748 return change_filename(direction); 2748 return change_filename(direction);
2749 } 2749 }
@@ -2762,7 +2762,7 @@ int load_and_show(char* filename)
2762 ds_min = min_downscale(&jpg, buf_size); /* check memory constraint */ 2762 ds_min = min_downscale(&jpg, buf_size); /* check memory constraint */
2763 if (ds_min == 0) 2763 if (ds_min == 0)
2764 { 2764 {
2765 rb->splash(HZ, true, "too large"); 2765 rb->splash(HZ, "too large");
2766 file_pt[curfile] = '\0'; 2766 file_pt[curfile] = '\0';
2767 return change_filename(direction); 2767 return change_filename(direction);
2768 } 2768 }
@@ -2902,7 +2902,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
2902 buf_size -= graysize; 2902 buf_size -= graysize;
2903 if (grayscales < 33 || buf_size <= 0) 2903 if (grayscales < 33 || buf_size <= 0)
2904 { 2904 {
2905 rb->splash(HZ, true, "gray buf error"); 2905 rb->splash(HZ, "gray buf error");
2906 return PLUGIN_ERROR; 2906 return PLUGIN_ERROR;
2907 } 2907 }
2908#else 2908#else