Browse Source

Draw inactive boxes properly.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
8e8a690883
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      FL/Boxtypes.C

+ 6
- 0
FL/Boxtypes.C 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...


Loading…
Cancel
Save