From 1ce69ac127c823463204ad522bb7c71ac7fad27a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 15 Oct 2014 14:43:15 +0200 Subject: html: Use float for dimensions. --- include/mupdf/html.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/mupdf/html.h b/include/mupdf/html.h index 8a1eaa3c..2b46fc9a 100644 --- a/include/mupdf/html.h +++ b/include/mupdf/html.h @@ -103,21 +103,21 @@ struct computed_style { int display; int position; - int top, right, bottom, left; - int margin[4]; - int padding[4]; - int border_width[4]; + float top, right, bottom, left; + float margin[4]; + float padding[4]; + float border_width[4]; int border_style; struct color border_color; struct color color; struct color background_color; const char *font_family; int bold, italic, smallcaps; - int font_size; - int line_height; + float font_size; + float line_height; int vertical_align; int text_align; - int text_indent; + float text_indent; }; void apply_styles(struct style *style, struct rule *rule, fz_xml *node); -- cgit v1.2.3