aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;
}