Skip to content

Commit

Permalink
Fl_Tabs draws the background behind the tabs.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1312 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
spitzak committed Oct 17, 2000
1 parent 00cf38e commit a5d75b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Fl_Tabs.cxx
@@ -1,5 +1,5 @@
//
// "$Id: Fl_Tabs.cxx,v 1.6.2.8 2000/08/30 05:51:39 spitzak Exp $"
// "$Id: Fl_Tabs.cxx,v 1.6.2.9 2000/10/17 06:53:20 spitzak Exp $"
//
// Tab widget for the Fast Light Tool Kit (FLTK).
//
Expand Down Expand Up @@ -197,6 +197,8 @@ void Fl_Tabs::draw() {
Fl_Widget *v = value();
int H = tab_height();
if (damage() & FL_DAMAGE_ALL) { // redraw the entire thing:
fl_color(color());
fl_rectf(x(), y()+(H>=0?0:h()+H), w(), H>=0?H:-H);
fl_clip(x(), y()+(H>=0?H:0), w(), h()-(H>=0?H:-H));
draw_box(box(), x(), y(), w(), h(), v ? v->color() : color());
fl_pop_clip();
Expand Down Expand Up @@ -273,5 +275,5 @@ Fl_Tabs::Fl_Tabs(int X,int Y,int W, int H, const char *l) :
}

//
// End of "$Id: Fl_Tabs.cxx,v 1.6.2.8 2000/08/30 05:51:39 spitzak Exp $".
// End of "$Id: Fl_Tabs.cxx,v 1.6.2.9 2000/10/17 06:53:20 spitzak Exp $".
//

0 comments on commit a5d75b0

Please sign in to comment.