diff options
author | Araki Ken <arakiken@users.sf.net> | 2014-09-22 11:16:39 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2014-12-06 11:47:05 +0000 |
commit | 2fe66f3a6f1b1fd28424a2f14beebdd535e9d17b (patch) | |
tree | 546648d217e82e218d22d20e90cc46acc2bd0e72 /file.c | |
parent | Don't download image files whose size is specified in <img> tag. (diff) | |
download | w3m-2fe66f3a6f1b1fd28424a2f14beebdd535e9d17b.tar.gz w3m-2fe66f3a6f1b1fd28424a2f14beebdd535e9d17b.zip |
Add -sixel option which supports image processing by img2sixel.
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3345,7 +3345,7 @@ process_img(struct parsed_tag *tag, int width) if (i < 0) i = pixel_per_line; } - if (support_remote_image) { + if (enable_inline_image) { nw = (w > 1) ? ((w - 1) / pixel_per_char_i + 1) : 1 ; ni = (i > 1) ? ((i - 1) / pixel_per_line_i + 1) : 1 ; } @@ -3384,7 +3384,7 @@ process_img(struct parsed_tag *tag, int width) Strcat(tmp, Sprintf(" height=%d", i0)); switch (align) { case ALIGN_MIDDLE: - if (!support_remote_image) { + if (!enable_inline_image) { top = ni / 2; bottom = top; if (top * 2 == ni) @@ -3416,7 +3416,7 @@ process_img(struct parsed_tag *tag, int width) break; } - if (support_remote_image) + if (enable_inline_image) xoffset = 0; else xoffset = (int)((nw * pixel_per_char - w) / 2); |