diff options
author | Araki Ken <arakiken@users.sf.net> | 2014-09-22 13:16:07 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2014-12-06 11:47:05 +0000 |
commit | 9504d18d0a5e6f6401cc5e6da447eb02897ac207 (patch) | |
tree | b551fd0990d92dd37f8fef16576b5142bcc67df2 | |
parent | Add -sixel option which supports image processing by img2sixel. (diff) | |
download | w3m-9504d18d0a5e6f6401cc5e6da447eb02897ac207.tar.gz w3m-9504d18d0a5e6f6401cc5e6da447eb02897ac207.zip |
Init pixel_per_{char|line}_i if get_pixel_per_cell() fails.
-rw-r--r-- | image.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -62,6 +62,10 @@ getCharSize() pixel_per_char = (double)ppc; pixel_per_line = (double)ppl; } + else { + pixel_per_char_i = (int)pixel_per_char; + pixel_per_line_i = (int)pixel_per_line; + } return TRUE; } |