summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-04-06 13:49:57 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-04-06 13:49:57 +0200
commit9214cb0350c4aa81b209a8f90ec2d08a6ff6e705 (patch)
tree9912706c906874c2dbd65578fcd5c033e9784c00 /src
parent82efb76c026951ff102f46a44b5f0324aabd1b33 (diff)
imlib.c: handle new Imlib2 return codes
Diffstat (limited to 'src')
-rw-r--r--src/imlib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/imlib.c b/src/imlib.c
index cd57f59..072bf58 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -233,6 +233,14 @@ void feh_print_load_error(char *file, winwidget w, Imlib_Load_Error err, enum fe
case IMLIB_LOAD_ERROR_OUT_OF_DISK_SPACE:
im_weprintf(w, "%s - Cannot write - out of disk space", file);
break;
+#if defined(IMLIB2_VERSION_MAJOR) && defined(IMLIB2_VERSION_MINOR) && (IMLIB2_VERSION_MAJOR > 1 || IMLIB2_VERSION_MINOR > 7)
+ case IMLIB_LOAD_ERROR_IMAGE_READ:
+ im_weprintf(w, "%s - Invalid image file", file);
+ break;
+ case IMLIB_LOAD_ERROR_IMAGE_FRAME:
+ im_weprintf(w, "%s - Requested frame not in image", file);
+ break;
+#endif
default:
im_weprintf(w, "While loading %s - Unknown error (%d)",
file, err);