Skip to content

Commit

Permalink
imlib.c: handle new Imlib2 return codes
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Apr 6, 2023
1 parent 82efb76 commit 9214cb0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/imlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9214cb0

Please sign in to comment.