diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-13 15:29:37 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-13 15:30:12 +0200 |
| commit | 6958e5d615c320efd61e9a8ced86d1acc32d78be (patch) | |
| tree | c2f1c949b57061f19a7119cc2d428b7ee73d853f /src/fl_gtk.cxx | |
| parent | c274ae136599c06996b1ca0e8b6931445efd6065 (diff) | |
Drawing artifact with round check buttons in menu under Cairo (#792)
Diffstat (limited to 'src/fl_gtk.cxx')
| -rw-r--r-- | src/fl_gtk.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fl_gtk.cxx b/src/fl_gtk.cxx index eb47c6c2a..65ded73d7 100644 --- a/src/fl_gtk.cxx +++ b/src/fl_gtk.cxx @@ -232,7 +232,9 @@ static void gtk_round_up_box(int x, int y, int w, int h, Fl_Color c) { static void gtk_round_down_box(int x, int y, int w, int h, Fl_Color c) { gtk_color(c); + fl_antialias(0); // fix for issue #792 draw(FILL, x, y, w, h, 2); + fl_antialias(1); // fix for issue #792 gtk_color(fl_color_average(FL_WHITE, c, 0.1f)); draw(LOWER_RIGHT, x+1, y, w-2, h, 2); |
