summaryrefslogtreecommitdiff
path: root/src/fl_round_box.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_round_box.cxx
parentc274ae136599c06996b1ca0e8b6931445efd6065 (diff)
Drawing artifact with round check buttons in menu under Cairo (#792)
Diffstat (limited to 'src/fl_round_box.cxx')
-rw-r--r--src/fl_round_box.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fl_round_box.cxx b/src/fl_round_box.cxx
index c0fdb378f..ea46c7737 100644
--- a/src/fl_round_box.cxx
+++ b/src/fl_round_box.cxx
@@ -73,7 +73,9 @@ extern const uchar* fl_gray_ramp();
void fl_round_down_box(int x, int y, int w, int h, Fl_Color bgcolor) {
const uchar *g = fl_gray_ramp();
+ fl_antialias(0); // fix for issue #792
draw(FILL, x, y, w, h, 2, Fl::box_color(bgcolor));
+ fl_antialias(1); // fix for issue #792
draw(UPPER_LEFT, x+1, y, w-2, h, 0, (Fl_Color)g[(int)'N']);
draw(UPPER_LEFT, x+1, y, w-2, h, 1, (Fl_Color)g[(int)'H']);
draw(UPPER_LEFT, x, y, w, h, 0, (Fl_Color)g[(int)'N']);