From 2b73254f2be9f7244e4f47d39ddb0a9c81db5c71 Mon Sep 17 00:00:00 2001 From: ellson Date: Thu, 21 Feb 2008 13:11:34 +0000 Subject: [PATCH] round the paragraph size metrics to avoid a difference in results on i386 and x86_64 --- plugin/pango/gvtextlayout_pango.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/pango/gvtextlayout_pango.c b/plugin/pango/gvtextlayout_pango.c index 899aa1902..a382329f9 100644 --- a/plugin/pango/gvtextlayout_pango.c +++ b/plugin/pango/gvtextlayout_pango.c @@ -154,8 +154,8 @@ static boolean pango_textlayout(textpara_t * para, char **fontpath) logical_rect.height = 0; textlayout_scale = POINTS_PER_INCH / (FONT_DPI * PANGO_SCALE); - para->width = logical_rect.width * textlayout_scale; - para->height = logical_rect.height * textlayout_scale; + para->width = ROUND(logical_rect.width * textlayout_scale); + para->height = ROUND(logical_rect.height * textlayout_scale); /* The y offset from baseline to 0,0 of the bitmap representation */ iter = pango_layout_get_iter (layout); -- 2.40.0