diff options
author | Araki Ken <arakiken@users.sf.net> | 2013-03-13 19:53:45 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2014-12-06 11:47:04 +0000 |
commit | 0640eca05c89e7670785fd39969a2e01ebfe32e9 (patch) | |
tree | b56ca5b27b03dd3a024eb8f7ed40d960cb84af01 /file.c | |
parent | * terms.c: Change time to wait for the response of "\x1b[14t\x1b[18t" from 0.... (diff) | |
download | w3m-0640eca05c89e7670785fd39969a2e01ebfe32e9.tar.gz w3m-0640eca05c89e7670785fd39969a2e01ebfe32e9.zip |
* file.c: nw and ni are rounded up instead of rounded off to show every corner of images.
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -3345,8 +3345,14 @@ process_img(struct parsed_tag *tag, int width) if (i < 0) i = pixel_per_line; } - nw = (w > 3) ? (int)((w - 3) / pixel_per_char + 1) : 1; - ni = (i > 3) ? (int)((i - 3) / pixel_per_line + 1) : 1; + if (support_remote_image) { + nw = (w > 1) ? ((w - 1) / pixel_per_char_i + 1) : 1 ; + ni = (i > 1) ? ((i - 1) / pixel_per_line_i + 1) : 1 ; + } + else { + nw = (w > 3) ? (int)((w - 3) / pixel_per_char + 1) : 1; + ni = (i > 3) ? (int)((i - 3) / pixel_per_line + 1) : 1; + } Strcat(tmp, Sprintf("<pre_int><img_alt hseq=\"%d\" src=\"", cur_iseq++)); pre_int = TRUE; |