From 01b8ac418bc10fc04b01652e1387ba7fd84d2034 Mon Sep 17 00:00:00 2001 From: Rin Okuyama Date: Fri, 2 Sep 2022 17:47:16 +0900 Subject: [PATCH] Display resized image for OSC 5379 (mlterm). Previously, some images, e.g., Google logo on its top page, are not displayed at all for OSC 5379 (mlterm). --- image.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/image.c b/image.c index 3532040..759f2b6 100644 --- a/image.c +++ b/image.c @@ -620,16 +620,8 @@ getImage(Image * image, ParsedURL *current, int flag) if (image->height > 0 && image->height % pixel_per_line_i > 0) image->height += (pixel_per_line_i - image->height % pixel_per_line_i); - if (image->height > 0 && image->width > 0) { - cache->loaded = IMG_FLAG_LOADED; - } - } - if (cache->loaded == IMG_FLAG_UNLOADED) { - cache->touch = tmpfname(TMPF_DFL, NULL)->ptr; - } - else { - cache->touch = NULL; } + cache->touch = tmpfname(TMPF_DFL, NULL)->ptr; cache->width = image->width ; cache->height = image->height ;