diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-05 16:04:53 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-05 16:04:53 +0000 |
| commit | 80b1529ef4d69d9e34a48a419a018d7f4d64054b (patch) | |
| tree | 7c743dc2f7f17654f1535314f6b0e6c5eadfc21b /src/Fl_Tabs.cxx | |
| parent | 60399e3945dcfe9a2bb9f00f794d9e8634dd6bd9 (diff) | |
Multiple patches from Bill:
- Double-buffered window fixes.
- Tabs fixes.
- X/WIN32 fixes.
- Fl_Input fixes.
- Support for vsnprintf and friends.
- Support for printf-style arguments in utility functions.
git-svn-id: file:///fltk/svn/fltk/trunk@52 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Tabs.cxx')
| -rw-r--r-- | src/Fl_Tabs.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index 4399d93c1..110b1b6c4 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Tabs.cxx,v 1.4 1998/10/21 14:20:22 mike Exp $" +// "$Id: Fl_Tabs.cxx,v 1.5 1998/11/05 16:04:47 mike Exp $" // // Tab widget for the Fast Light Tool Kit (FLTK). // @@ -189,12 +189,14 @@ void Fl_Tabs::draw() { int H = tab_height(); if (damage() & FL_DAMAGE_ALL) { // redraw the entire thing: fl_clip(x(), y()+(H>=0?H:0), w(), h()-(H>=0?H:-H)); - draw_box(box(), x(), y(), w(), h(), v->color()); + draw_box(box(), x(), y(), w(), h(), v ? v->color() : color()); fl_pop_clip(); - draw_child(*v); + if (v) draw_child(*v); } else { // redraw the child - update_child(*v); + if (v) update_child(*v); } + if (!v) return; + if (damage() & (FL_DAMAGE_EXPOSE|FL_DAMAGE_ALL)) { int p[128]; int w[128]; int selected = tab_positions(p,w); @@ -257,5 +259,5 @@ Fl_Tabs::Fl_Tabs(int X,int Y,int W, int H, const char *l) : } // -// End of "$Id: Fl_Tabs.cxx,v 1.4 1998/10/21 14:20:22 mike Exp $". +// End of "$Id: Fl_Tabs.cxx,v 1.5 1998/11/05 16:04:47 mike Exp $". // |
