summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-27 14:48:22 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-27 14:48:22 +0200
commit3ba09047e2c9a8d1d2567dd6e6e5c1a911bad6e1 (patch)
treea4fc5e6a2fd9375b8e1d8b323940441aed367246 /src
parent59fc60ea4cb8db6ee43a1ac37cd4bbbefcb87faa (diff)
Use PR #507 by @ggarra13 to fix issue #85.
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Menu.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx
index 5841a1003..f6718eeb6 100644
--- a/src/Fl_Menu.cxx
+++ b/src/Fl_Menu.cxx
@@ -530,6 +530,12 @@ void menutitle::draw() {
void menuwindow::draw() {
if (damage() != FL_DAMAGE_CHILD) { // complete redraw
+ if ( box() != FL_FLAT_BOX && ( Fl::is_scheme( "gtk+" ) ||
+ Fl::is_scheme( "plastic") || Fl::is_scheme( "gleam" ) )) {
+ // Draw a FL_FLAT_BOX to avoid on macOS the white corners of the menus
+ fl_draw_box( FL_FLAT_BOX, 0, 0, w(), h(),
+ button ? button->color() : color());
+ }
fl_draw_box(box(), 0, 0, w(), h(), button ? button->color() : color());
if (menu) {
const Fl_Menu_Item* m; int j;