From 74f108ee4dc5b915dfc8de0f88485245831ea7a9 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 12 Mar 2011 17:46:11 +0000 Subject: Saturated maths in css fixed point svn path=/trunk/netsurf/; revision=11975 --- render/font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render/font.c') diff --git a/render/font.c b/render/font.c index c731bc60c..87511b261 100644 --- a/render/font.c +++ b/render/font.c @@ -45,8 +45,8 @@ void font_plot_style_from_css(const css_computed_style *css, css_computed_font_family(css, &families)); css_computed_font_size(css, &length, &unit); - fstyle->size = FIXTOINT(FMULI(nscss_len2pt(length, unit), - FONT_SIZE_SCALE)); + fstyle->size = FIXTOINT(FMUL(nscss_len2pt(length, unit), + INTTOFIX(FONT_SIZE_SCALE))); /* Clamp font size to configured minimum */ if (fstyle->size < (option_font_min_size * FONT_SIZE_SCALE) / 10) -- cgit v1.2.3