Init pixel_per_{char|line}_i if get_pixel_per_cell() fails.

This commit is contained in:
Araki Ken
2014-09-22 22:16:07 +09:00
committed by Tatsuya Kinoshita
parent 2fe66f3a6f
commit 9504d18d0a

View File

@@ -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;
}