aboutsummaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorAraki Ken <arakiken@users.sf.net>2014-09-22 13:55:14 +0000
committerTatsuya Kinoshita <tats@debian.org>2014-12-06 11:47:05 +0000
commitde942f3abf6da50b7e85339117bafdd3b5d0a146 (patch)
treefb217dfcfb84c3fa2743b38f204c49d3be73d21b /image.c
parentInit pixel_per_{char|line}_i if get_pixel_per_cell() fails. (diff)
downloadw3m-de942f3abf6da50b7e85339117bafdd3b5d0a146.tar.gz
w3m-de942f3abf6da50b7e85339117bafdd3b5d0a146.zip
Cache image files if at all possible and convert them to sixel when -sixel option is specified.
Diffstat (limited to '')
-rw-r--r--image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/image.c b/image.c
index 4f8eb0a..b5137e7 100644
--- a/image.c
+++ b/image.c
@@ -595,7 +595,7 @@ getImage(Image * image, ParsedURL *current, int flag)
cache->pid = 0;
cache->index = 0;
cache->loaded = IMG_FLAG_UNLOADED;
- if (enable_inline_image) {
+ if (enable_inline_image == 1) {
if (image->width > 0 && image->width % pixel_per_char_i > 0)
image->width += (pixel_per_char_i - image->width % pixel_per_char_i);