Draw inactive boxes properly.

This commit is contained in:
Jonathan Moore Liles 2008-04-27 05:41:30 -05:00
parent 28d1b4754b
commit 8e8a690883
1 changed files with 6 additions and 0 deletions

View File

@ -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...