Commit Graph

1369 Commits

Author SHA1 Message Date
Kim Woelders 34afe297cd imlib2_view: Cleanups 2021-08-21 10:05:57 +02:00
Kim Woelders 0497d2bb0c imlib2_view: Move property stuff to separate file
May reuse it elsewhere.
2021-08-21 10:05:57 +02:00
Kim Woelders b9c88445a2 1.7.3 2021-08-08 19:28:09 +02:00
Kim Woelders d2ff569608 autofoo: Resurrect non-pkg check for bzip2
Apparently upstream (1.0.8) does not provide a .pc file but some
distributions add one.
2021-08-07 18:46:35 +02:00
Kim Woelders 8bd1a401bc 1.7.2 2021-07-27 18:55:18 +02:00
Kim Woelders 1a439ed4df WEBP saver: Use fopen() etc. like all other savers 2021-07-16 23:08:10 +02:00
Kim Woelders e709825314 Loaders: Remove unnecessary headers 2021-07-16 19:40:03 +02:00
Kim Woelders 3c21caea23 Correct (disabled) debug printouts 2021-07-13 09:07:27 +02:00
Kim Woelders 49af0f9d59 Add feature to build with ASAN (--enable-gcc-asan) 2021-07-13 08:55:33 +02:00
Kim Woelders 651c56bb29 Drop unused Imlib_Object_List:last 2021-07-13 08:20:11 +02:00
Kim Woelders c31a5b98a2 Cleanups: while->for loops (pixmaps list) 2021-07-10 15:44:17 +02:00
Kim Woelders 6cfa4a4505 Cleanups: while->for loops (images list) 2021-07-10 15:44:17 +02:00
Kim Woelders 7a460e6a6e Cleanups: while->for loops (im->tags list) 2021-07-10 15:44:17 +02:00
Kim Woelders 4f3da0de03 Cleanups: while->for loops (context list) 2021-07-10 15:44:17 +02:00
Kim Woelders 3c645829b4 Cleanups: while->for loops (loaders list) 2021-07-10 15:44:17 +02:00
Kim Woelders 240857af99 Spec file: Add git tag to rpm file name (if built from git checkout) 2021-07-10 15:44:17 +02:00
Kim Woelders 407533ebdc TGA loader: Fix loading small images without footer
Patch by noospot <noospot@mail.de>.
2021-07-10 15:40:37 +02:00
Kim Woelders 933fc2ab1f TIFF loader: Drop use of libtiff defined types deprecated in libtiff-4.3.0
Switch to using C99 types, uint8 -> uint8_t, etc. now used by libtiff.
2021-04-30 10:04:05 +02:00
Kim Woelders c1ee164d6d autofoo: Move more to pkg-config
Facilitates testing alternative library versions.
2021-04-30 10:03:49 +02:00
Kim Woelders 27ab891c56 Fix clang-analyzer warnings - lib (less trivial) 2021-04-16 17:15:06 +02:00
Kim Woelders e82a5997ec Fix clang-analyzer warnings - lib (mostly trivial) 2021-04-16 17:15:06 +02:00
Kim Woelders 6f4dc94cc4 Fix clang-analyzer warnings - loaders (suppress bogus) 2021-04-16 17:15:06 +02:00
Kim Woelders cd1a42dd07 Fix clang-analyzer warnings - loaders (trivial) 2021-04-16 17:15:06 +02:00
Kim Woelders 652d30e8fe Fix clang-analyzer warnings - bin (trivial) 2021-04-16 17:15:06 +02:00
Kim Woelders 4fa2ad8566 LBM loader: Fix handling of missing RLE data
The missing bytes were cleared at the start of the line, not the end.
2021-04-16 17:15:06 +02:00
Kim Woelders 90c5f5a26a context.c: Fix potential segv
Also call __imlib_FlushContexts() before adding new context, not after
- It's pointless to check the new context
- Avoids (bogus) clang-analyzer warning
2021-04-13 06:56:32 +02:00
Kim Woelders bdbea7b384 Remove unused Context functions 2021-04-13 06:56:32 +02:00
Kim Woelders 1f6438a1c7 ICO loader: Enable specifying ico image index by key 2021-04-13 06:56:32 +02:00
Kim Woelders 7eb6c6388b ICO loader: Fix (disabled) debug stuff 2021-04-13 06:56:32 +02:00
Kim Woelders 11cc9ffa51 Restore file:key functionality
Broken by 07e1601cd5 (in v1.7.0).
2021-04-12 20:39:36 +02:00
Kim Woelders e095fc4ba4 Remove obsolete and unused AC_HEADER_STDC 2021-04-06 15:40:31 +02:00
Kim Woelders 6445d124c4 Add imlib2_load and /build to .gitignore 2021-04-06 15:40:06 +02:00
Kim Woelders b215368196 Add XBM loader 2020-12-18 07:18:29 +01:00
Kim Woelders 418d19e066 rend.c: Remove some pointless lines 2020-12-13 06:45:11 +01:00
Kim Woelders f4c04168b4 Remove some unnecessary X_DISPLAY_MISSING stuff 2020-12-13 06:45:11 +01:00
Kim Woelders 01424487e3 1.7.1 2020-12-09 17:46:24 +01:00
Kim Woelders 381e65f567 Silence a couple of sign-compare warnings 2020-12-09 17:44:16 +01:00
Kim Woelders ae3d501f93 XPM loader: Get transparency right when doing header-only loading
We have to parse the colormap too to figure that out.
2020-12-08 20:07:48 +01:00
Kim Woelders 64df90de3d WEBP loader: Add initial signature check
Avoid potentially wasting much time when loading/checking large
non-webp files.
2020-12-06 18:09:42 +01:00
Kim Woelders e3be3eb0fc grab.c: Support 30bpp display in __imlib_GrabXImageToRGBA()
Patch by the_third.

https://phab.enlightenment.org/T8808
2020-12-06 14:16:45 +01:00
Kim Woelders 9219b2c6a3 rend.c: Fix __imlib_generic_render() when jump != 0
Patch by the_third.

https://phab.enlightenment.org/T8799
2020-12-06 14:14:09 +01:00
Daniel Kolesa 92d3153fee Fix big endian build 2020-08-09 21:00:46 +02:00
Kim Woelders 7066b54364 1.7.0 2020-08-01 07:02:26 +02:00
Kim Woelders 9e8978c6be Remove a couple of unused includes 2020-07-28 21:35:39 +02:00
Kim Woelders ea5da196cb Fix build without X11 2020-07-28 19:57:11 +02:00
Kim Woelders 06aa6d1bfc imlib2_load: Optionally use imlib_load_image_fd() 2020-04-14 17:47:00 +02:00
Kim Woelders 0547caa67a configure.ac: Drop initial config.cache removal
Not removing config.cache does not seem to cause trouble elsewhere.
2020-04-14 17:36:55 +02:00
Alexander Volkov 204d994d8c Don't rescan loaders
Summary:
Loaders from a newer version of imlib2 may be incompatible with an
older version of imlib2. Thus already running applications may
stop loading images after system upgrade, which can be extremely
unpleasant for the user.

Reviewers: kwo

Reviewed By: kwo

Differential Revision: https://phab.enlightenment.org/D11678
2020-04-14 17:34:41 +02:00
Alexander Volkov 5db012a35e Introduce imlib_load_image_from_fd()
Summary:
It can be used to load files in a process, which has no access to the file,
by passing the file descriptor to it. For example, in a sandboxed process.
Also anonymous files created with O_TMPFILE or by memfd_create() can be loaded.

Reviewers: kwo

Differential Revision: https://phab.enlightenment.org/D10262
2020-03-04 17:15:23 +01:00
Kim Woelders 07e1601cd5 Reduce number of stat() calls during load
Also skip empty files entirely.
2020-03-01 06:28:28 +01:00