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/textplain.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'render/textplain.c') diff --git a/render/textplain.c b/render/textplain.c index 3a3ffd184..bc4505ce2 100644 --- a/render/textplain.c +++ b/render/textplain.c @@ -994,8 +994,7 @@ float textplain_line_height(void) /* Size is in points, so convert to pixels. * Then use a constant line height of 1.2 x font size. */ - return FIXTOFLT(FDIVI((FMUL(FLTTOFIX(1.2), - FMULI(nscss_screen_dpi, - (textplain_style.size / FONT_SIZE_SCALE)))), 72)); + return FIXTOFLT(FDIV((FMUL(FLTTOFIX(1.2), FMUL(nscss_screen_dpi, + INTTOFIX((textplain_style.size / FONT_SIZE_SCALE))))), F_72)); } -- cgit v1.2.3