Skip to content
Myr

Merge branch 'clear-cairo-path-before-drawing-border'

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

Closes #47

authored by Daniel Eklöf · committed by Daniel Eklöf · parents 74c24aa, 453db9c · Browse files · 3 files+7 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

3 files+7 added−1 removed

  • other:+7 added−1 removed

3 files+7 added−1 removed

modified:CHANGELOG.md+5 added
18 unmodified lines
19### Changed20### Deprecated21### Removed22### Fixed2324* Graphical corruption triggered by the “gerbview” SVG icon, from25 KiCAD (https://codeberg.org/dnkl/fuzzel/issues/47).262728### Security29### Contributors3031
180 unmodified lines
modified:main.c+1 added-1 removed
590 unmodified lines
591 applications_destroy(apps);592 icon_themes_destroy(themes);593 free(prompt_allocated);594595#if defined(FUZZEL_ENABLE_CAIRO)595#if defined(FUZZEL_ENABLE_CAIRO) && defined(_DEBUG)596 cairo_debug_reset_static_data();597#endif598 log_deinit();599 return ret;
1 unmodified line
modified:render.c+1 added
99 unmodified lines
100 const double from_degree = M_PI / 180;101 const double radius = render->options.border_radius;102103 /* Path describing an arc:ed rectangle */104 cairo_new_path(buf->cairo);105 cairo_arc(buf->cairo, b + w - radius, b + h - radius, radius,106 0.0 * from_degree, 90.0 * from_degree);107 cairo_arc(buf->cairo, b + radius, b + h - radius, radius,108 90.0 * from_degree, 180.0 * from_degree);
501 unmodified lines