diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-03-12 17:46:11 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-03-12 17:46:11 +0000 |
commit | 74f108ee4dc5b915dfc8de0f88485245831ea7a9 (patch) | |
tree | 68ede86e02c521b1c10b31cd2c5b57fd8984256d /render/textplain.c | |
parent | bdb05fa08abe1781827a3c095f26d7d0ac4dbe82 (diff) | |
download | netsurf-74f108ee4dc5b915dfc8de0f88485245831ea7a9.tar.gz netsurf-74f108ee4dc5b915dfc8de0f88485245831ea7a9.tar.bz2 |
Saturated maths in css fixed point
svn path=/trunk/netsurf/; revision=11975
Diffstat (limited to 'render/textplain.c')
-rw-r--r-- | render/textplain.c | 5 |
1 files changed, 2 insertions, 3 deletions
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)); } |