From f734aaace5c129721410f49a39357102fa3180e0 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 25 Jul 2009 17:21:35 +0000 Subject: Make round-to-nearest clearer. svn path=/trunk/netsurf/; revision=8786 --- css/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/utils.c b/css/utils.c index 819dadd97..11a14e174 100644 --- a/css/utils.c +++ b/css/utils.c @@ -135,7 +135,7 @@ css_fixed nscss_len2px(css_fixed length, css_unit unit, /* Ensure we round px_per_unit to the nearest whole number of pixels: * the use of FIXTOINT() below will truncate. */ - px_per_unit += FDIVI(INTTOFIX(1), 2); + px_per_unit += FLTTOFIX(0.5); /* Calculate total number of pixels */ return FMULI(length, FIXTOINT(px_per_unit)); -- cgit v1.2.3