summaryrefslogtreecommitdiff
path: root/render/textplain.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-07-24 00:17:43 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-07-24 00:17:43 +0000
commitcc662408b79e0a82f707c498721c47bdd553301a (patch)
tree03a16f4acfe33ee27ce5f77ab648a59ad66f1dd1 /render/textplain.c
parent48e3221458797328b9a36f92bd636b9483115220 (diff)
downloadnetsurf-cc662408b79e0a82f707c498721c47bdd553301a.tar.gz
netsurf-cc662408b79e0a82f707c498721c47bdd553301a.tar.bz2
Fix text/plain lineheight calculation
svn path=/trunk/netsurf/; revision=8763
Diffstat (limited to 'render/textplain.c')
-rw-r--r--render/textplain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/textplain.c b/render/textplain.c
index 256d9b8db..708c6b2f6 100644
--- a/render/textplain.c
+++ b/render/textplain.c
@@ -736,6 +736,7 @@ float textplain_line_height(void)
* 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))), 72));
+ FMULI(nscss_screen_dpi,
+ (textplain_style.size / FONT_SIZE_SCALE)))), 72));
}