Skip to content
Myr

render: icon size: both row height and font’s descent has already been scaled

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 1e862f4 · Browse files · 2 files+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−1 removed

  • other:+5 added−1 removed

2 files+5 added−1 removed

modified:CHANGELOG.md+4 added
modified:render.c+1 added-1 removed
491 unmodified lines
492 const unsigned row_height = render->options.line_height.px >= 0493 ? pt_or_px_as_pixels(&render->options.line_height, dpi)494 : font->height;495496 const unsigned icon_height = max(0, (row_height - font->descent) * scale);496 const unsigned icon_height = max(0, row_height - font->descent);497498 const unsigned height =499 border_size + /* Top border */500 y_margin +
43 unmodified lines