Skip to content
Myr

render: apply scaling to border radius

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

Closes #236

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 2a31d2c · Browse files · 3 files+9 added−3 removed
This commit

State

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

Diff stats

3 files+9 added−3 removed

  • other:+9 added−3 removed

3 files+9 added−3 removed

modified:doc/fuzzel.1.scd+2 added-2 removed
156 unmodified lines
157 The width of the surrounding border, in pixels (subject to output158 scaling). Default: _1_.159160*-r*,*--border-radius*=_INT_161 The corner curvature. Larger means more rounded corners.162 0 disables rounded corners. Default: _10_.161 The corner curvature, subject to output scaling. Larger means more162 rounded corners. 0 disables rounded corners. Default: _10_.163164*-C*,*--border-color*=_HEX_165 The color of the border. See *COLORS*. Default: _002b36ff_.166
159 unmodified lines
modified:CHANGELOG.md+6 added
30 unmodified lines
31 off by default. To disable filtering set in the config from the command line,32 use --filter-desktop=no3334### Changed3536* Output scaling is now applied to the border radius ([#236][236]).3738[236]: https://codeberg.org/dnkl/fuzzel/issues/236394041### Deprecated42### Removed43### Fixed44
510 unmodified lines
modified:render.c+1 added-1 removed
123 unmodified lines
124 const double w = max(buf->width - 2 * b, 0.);125 const double h = max(buf->height - 2 * b, 0.);126127 const double from_degree = M_PI / 180;128 const double radius = render->conf->border.radius;128 const double radius = render->conf->border.radius * render->scale;129130 /* Path describing an arc:ed rectangle */131 cairo_new_path(buf->cairo);132 cairo_arc(buf->cairo, b + w - radius, b + h - radius, radius,
725 unmodified lines