summaryrefslogtreecommitdiff
path: root/render/textplain.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/textplain.c')
-rw-r--r--render/textplain.c5
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));
}