Fix textarea line height.

svn path=/trunk/netsurf/; revision=8766
This commit is contained in:
John Mark Bell 2009-07-24 01:03:17 +00:00
parent 7ee7281fcd
commit 4af04582ad
1 changed files with 3 additions and 2 deletions

View File

@ -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;