summaryrefslogtreecommitdiff
path: root/desktop/textarea.c
diff options
context:
space:
mode:
authorAchal-Aggarwal <theachalaggarwal@gmail.com>2014-03-31 01:53:06 +0530
committerAchal-Aggarwal <theachalaggarwal@gmail.com>2014-03-31 01:53:06 +0530
commit763825e5972f6ea7f986056f84a68cec451ba7cb (patch)
treeebfaa38ea614a3145f840ec811fa210050efdb8a /desktop/textarea.c
parent0adbfe125e288c59588be87f7cd8493b0c8c0351 (diff)
downloadnetsurf-763825e5972f6ea7f986056f84a68cec451ba7cb.tar.gz
netsurf-763825e5972f6ea7f986056f84a68cec451ba7cb.tar.bz2
Fixes #2101, evaluation of text field and textarea line height.
Diffstat (limited to 'desktop/textarea.c')
-rw-r--r--desktop/textarea.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c
index bd35a5ec4..2ba09824d 100644
--- a/desktop/textarea.c
+++ b/desktop/textarea.c
@@ -1895,9 +1895,9 @@ struct textarea *textarea_create(const textarea_flags flags,
ret->show = &ret->text;
}
- ret->line_height = FIXTOINT(FDIV((FMUL(FLTTOFIX(1.3),
- FMUL(nscss_screen_dpi, INTTOFIX((setup->text.size))))),
- FONT_SIZE_SCALE * F_72));
+ ret->line_height = FIXTOINT(FMUL(FLTTOFIX(1.3), FDIV(FMUL(
+ nscss_screen_dpi, FDIV(INTTOFIX(setup->text.size),
+ INTTOFIX(FONT_SIZE_SCALE))), F_72)));
ret->caret_pos.line = ret->caret_pos.byte_off = -1;
ret->caret_x = 0;