Don't lose fractional part of text pt size to rounding.

This commit is contained in:
Michael Drake 2013-02-07 15:03:35 +00:00
parent 08035f1197
commit 76b0e59b18
1 changed files with 2 additions and 3 deletions

View File

@ -1052,9 +1052,8 @@ struct textarea *textarea_create(const textarea_flags flags,
}
ret->line_height = FIXTOINT(FDIV((FMUL(FLTTOFIX(1.3),
FMUL(nscss_screen_dpi,
INTTOFIX((setup->text.size /
FONT_SIZE_SCALE))))), F_72));
FMUL(nscss_screen_dpi, INTTOFIX((setup->text.size))))),
FONT_SIZE_SCALE * F_72));
ret->caret_pos.line = ret->caret_pos.char_off = -1;
ret->caret_x = 0;