diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-07-24 01:03:17 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-07-24 01:03:17 +0000 |
commit | 4af04582adcc58681cae6dec43560cb382924ef1 (patch) | |
tree | 0dda2a4886ea053f4489c4b2e5efe1c6fd655638 | |
parent | 7ee7281fcde33af85d5a1130420d48f540c88fdd (diff) | |
download | netsurf-4af04582adcc58681cae6dec43560cb382924ef1.tar.gz netsurf-4af04582adcc58681cae6dec43560cb382924ef1.tar.bz2 |
Fix textarea line height.
svn path=/trunk/netsurf/; revision=8766
-rw-r--r-- | desktop/textarea.c | 5 |
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; |