summaryrefslogtreecommitdiff
path: root/src/fl_oxy.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-10-13 15:29:37 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-10-13 15:30:12 +0200
commit6958e5d615c320efd61e9a8ced86d1acc32d78be (patch)
treec2f1c949b57061f19a7119cc2d428b7ee73d853f /src/fl_oxy.cxx
parentc274ae136599c06996b1ca0e8b6931445efd6065 (diff)
Drawing artifact with round check buttons in menu under Cairo (#792)
Diffstat (limited to 'src/fl_oxy.cxx')
-rw-r--r--src/fl_oxy.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fl_oxy.cxx b/src/fl_oxy.cxx
index 0768a75de..86fb4d79f 100644
--- a/src/fl_oxy.cxx
+++ b/src/fl_oxy.cxx
@@ -217,9 +217,13 @@ static void _oxy_rounded_box_(int x, int y, int w, int h, Fl_Color bg) {
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 {
+ 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
}
}