aboutsummaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorAraki Ken <arakiken@users.sf.net>2014-09-22 13:16:07 +0000
committerTatsuya Kinoshita <tats@debian.org>2014-12-06 11:47:05 +0000
commit9504d18d0a5e6f6401cc5e6da447eb02897ac207 (patch)
treeb551fd0990d92dd37f8fef16576b5142bcc67df2 /image.c
parentAdd -sixel option which supports image processing by img2sixel. (diff)
downloadw3m-9504d18d0a5e6f6401cc5e6da447eb02897ac207.tar.gz
w3m-9504d18d0a5e6f6401cc5e6da447eb02897ac207.zip
Init pixel_per_{char|line}_i if get_pixel_per_cell() fails.
Diffstat (limited to 'image.c')
-rw-r--r--image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/image.c b/image.c
index 09e929c..4f8eb0a 100644
--- a/image.c
+++ b/image.c
@@ -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;
}