From 8e8a6908831e2a4d4468bd99e41aa50c6b77b9eb Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 27 Apr 2008 05:41:30 -0500 Subject: [PATCH] Draw inactive boxes properly. --- FL/Boxtypes.C | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/FL/Boxtypes.C b/FL/Boxtypes.C index 4273bf4..f876bd0 100644 --- a/FL/Boxtypes.C +++ b/FL/Boxtypes.C @@ -102,6 +102,9 @@ frame_round ( int x, int y, int w, int h, const char *c, Fl_Color bc ) uchar *g = fl_gray_ramp(); int b = strlen( c ) / 4 + 1; + if ( ! Fl::draw_box_active() ) + bc = fl_inactive( bc ); + if ( w == h ) { for ( ; b > 1; b--, x++, y++, w -= 2, h -= 2 ) @@ -166,6 +169,9 @@ shade_rect ( int x, int y, int w, int h, const char *c, Fl_Color bc ) int chalf = clen / 2; int cstep = 1; + if ( ! Fl::draw_box_active() ) + bc = fl_inactive( bc ); + if ( h < ( w * 2 ) ) { // Horizontal shading...