summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/textarea.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c
index 43ac85b0c..a12299a8d 100644
--- a/desktop/textarea.c
+++ b/desktop/textarea.c
@@ -186,8 +186,9 @@ struct text_area *textarea_create(int x, int y, int width, int height,
ret->fstyle = *style;
- ret->line_height = FIXTOINT(FDIVI(FMUL(
- FLTTOFIX(1.2 * style->size), nscss_screen_dpi), 72));
+ ret->line_height = FIXTOINT(FDIVI((FMUL(FLTTOFIX(1.2),
+ FMULI(nscss_screen_dpi,
+ (style->size / FONT_SIZE_SCALE)))), 72));
ret->caret_pos.line = ret->caret_pos.char_off = 0;
ret->selection_start = -1;