summaryrefslogtreecommitdiffstats
path: root/thumbs.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-03-01 18:49:02 +0100
committerBert <ber.t@gmx.com>2011-03-01 18:49:02 +0100
commitc05fd44bdda2934fa6f2f83b776038659f9d7d71 (patch)
tree9580d1edc2168c185a88943b430bef1d814077f7 /thumbs.c
parent955c39a5c5e3193e18c21abe87110651cc2472d2 (diff)
downloadnsxiv-c05fd44bdda2934fa6f2f83b776038659f9d7d71.tar.zst
Support for external commands like mogrify & jpegtran
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/thumbs.c b/thumbs.c
index df44c6f..78380ec 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -66,12 +66,10 @@ void tns_load(tns_t *tns, win_t *win, int n, const char *filename) {
else if (n >= tns->cnt)
tns->cnt = n + 1;
- if ((im = imlib_load_image(filename))) {
+ if ((im = imlib_load_image(filename)))
imlib_context_set_image(im);
- imlib_image_set_changes_on_disk();
- } else {
+ else
imlib_context_set_image(im_broken);
- }
w = imlib_image_get_width();
h = imlib_image_get_height();
@@ -95,7 +93,7 @@ void tns_load(tns_t *tns, win_t *win, int n, const char *filename) {
tns->dirty = 1;
if (im)
- imlib_free_image();
+ imlib_free_image_and_decache();
}
void tns_check_view(tns_t *tns, Bool scrolled) {