diff options
author | NRK <nrk@disroot.org> | 2023-07-08 09:05:57 +0200 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2023-07-08 09:05:57 +0200 |
commit | c1b36b8f0942a8ec34f97f28c8c77c84adf0c2c4 (patch) | |
tree | 015eb4ca8387c3c698896a5c36da2b7b9abdb522 /thumbs.c | |
parent | 9b122c82fac0f27f8fbde22b818cfa8befaaf405 (diff) | |
download | nsxiv-c1b36b8f0942a8ec34f97f28c8c77c84adf0c2c4.tar.zst |
add some upgrade comments (#457)
these document improvements and/or removal of unnecessary code for when
we will require a higher minimum version of Imlib2.
all the comments have been prefixed with "UPGRADE: " for easy grepping.
Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/457
Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
Diffstat (limited to 'thumbs.c')
-rw-r--r-- | thumbs.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -268,6 +268,7 @@ bool tns_load(tns_t *tns, int n, bool force, bool cache_only) char tmppath[] = "/tmp/nsxiv-XXXXXX"; Imlib_Image tmpim; + /* UPGRADE: Imlib2 v1.10.0: avoid tempfile and use imlib_load_image_mem() */ if ((ed = exif_data_new_from_file(file->path)) != NULL) { if (ed->data != NULL && ed->size > 0 && (tmpfd = mkstemp(tmppath)) >= 0) |