Skip to content
Myr

render: limit border radius to max(x-margin, y-margin)

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

Before this patch, the border radius was limited by min(x-margin, y-margin) (--horizontal-pad, --vertical-pad). Limit to max instead, since *one* margin _should_ be enough to ensure the radius doesn't truncate the text. Closes #436

authored by Daniel Eklöf · committed by Daniel Eklöf · parent b826a9b · Browse files · 2 files+4 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+4 added−1 removed

  • other:+4 added−1 removed

2 files+4 added−1 removed

modified:CHANGELOG.md+3 added
41 unmodified lines
42 is closer to the end of the entry ([#419][419]).43* "Too large" PNG icons are now downscaled using a less precise44 scaling filter, to improve performance ([#439][439]).45* Icon themes: 'scaled' directories are now ignored ([#459][459]).46* Border radius limited by max(horizontal-pad, vertical-pad), instead47 of min(horizontal-pad, vertical-pad) ([#436][436]).4849[419]: https://codeberg.org/dnkl/fuzzel/issues/41950[439]: https://codeberg.org/dnkl/fuzzel/issues/43951[459]: https://codeberg.org/dnkl/fuzzel/issues/45952[436]: https://codeberg.org/dnkl/fuzzel/issues/436535455### Deprecated56### Removed
847 unmodified lines
modified:render.c+1 added-1 removed
165 unmodified lines
166 /* Limit radius if the margins are very small, to prevent e.g. the167 selection "box" from overlapping the corners */168 const unsigned int radius =169 min(render->conf->border.radius,170 min(render->x_margin,170 max(render->x_margin,171 render->y_margin));172173 if (radius == 0) {174 pixman_image_fill_rectangles(
1279 unmodified lines