diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-16 12:47:06 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-16 12:47:06 +0200 |
| commit | da5331b59210769b4e15f24a0b5237a7ec5bfc4d (patch) | |
| tree | 6a145fe9b6da92ff7bdcf7c9151c733ef9edd32c /src/fl_oxy.cxx | |
| parent | 52f56535454744473b0a2630f251f3527c863f73 (diff) | |
Open
Fix Drawing artifact with round check buttons in menu under Cairo (#792)
Diffstat (limited to 'src/fl_oxy.cxx')
| -rw-r--r-- | src/fl_oxy.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fl_oxy.cxx b/src/fl_oxy.cxx index 86fb4d79f..59909fdf9 100644 --- a/src/fl_oxy.cxx +++ b/src/fl_oxy.cxx @@ -216,14 +216,12 @@ static void _oxy_rounded_box_(int x, int y, int w, int h, Fl_Color bg) { fl_rectf(x + h / 2, y, w - h, h); // rectangle between left and right half-circle fl_pie(x + w - h, y, h, h, 0.0, 90.0); // top-left quarter of circle fl_pie(x + w - h, y, h, h, 270.0, 360.0); // bottom-left quarter of circle + } else if (w == h) { + fl_pie(x, y, w, w, 0.0, 360.0); } else { - fl_antialias(0); // fix for issue #792 fl_pie(x, y, w, w, 0.0, 180.0); // top half of circle - fl_antialias(1); // fix for issue #792 fl_rectf(x, y + w / 2, w, h - w); // rectangle between top and bottom half-circle - fl_antialias(0); // fix for issue #792 fl_pie(x, y + h - w, w, w, 180.0, 360.0); // bottom half of circle - fl_antialias(1); // fix for issue #792 } } |
