Krolyxon
Commit 03eb664

Branches

Refs →

nsxiv03eb664

remove unnecessary animated webp related check

this code snippet was introduced in
https://github.com/nsxiv/nsxiv/pull/20/commits/2703809a23bdf3fe426466c7a10f41d747913128
but does not seem to be needed.

from what i can tell this is some sort of hack that might've been needed
back when we didn't bypass imlib2 when loading webp.
Author
N-R-K
Date
2021-10-28 16:45 +0600
Committer
GitHub · 2021-10-28 16:45 +0600
Parent
5b3221c
Commit
03eb664e89d01cb9a28a9a2dcbad6aac208fa03b

+0 −6

1 file changed

  1. M image.c +0 −6
M image.c View
@@ -446,13 +446,7 @@ Imlib_Image img_open(const fileinfo_t *file)
446446 im = imlib_load_image(file->path);
447447 if (im != NULL) {
448448 imlib_context_set_image(im);
449−#if HAVE_LIBWEBP
450− const char *fmt;
451− if ((fmt = imlib_image_format()) != NULL && !STREQ(fmt, "webp") &&
452− imlib_image_get_data_for_reading_only() == NULL) {
453−#else
454449 if (imlib_image_get_data_for_reading_only() == NULL) {
455−#endif
456450 imlib_free_image();
457451 im = NULL;
458452 }