diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-06-02 17:52:36 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-06-02 17:52:36 +0000 |
| commit | 839dfca77853da7ee76e585e9044e5bbf63a678f (patch) | |
| tree | 99df2d1a5b4f88df71473d97bff1162434ddfb33 /src/Fl_Widget.cxx | |
| parent | 9671c0429064f38e70ba1e441cd6ec071f310b3a (diff) | |
Redraw fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Widget.cxx')
| -rw-r--r-- | src/Fl_Widget.cxx | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx index 8766a05c4..d904e87d2 100644 --- a/src/Fl_Widget.cxx +++ b/src/Fl_Widget.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Widget.cxx,v 1.5.2.4.2.17 2002/05/24 14:19:19 easysw Exp $" +// "$Id: Fl_Widget.cxx,v 1.5.2.4.2.18 2002/06/02 17:52:36 easysw Exp $" // // Base widget class for the Fast Light Tool Kit (FLTK). // @@ -176,20 +176,11 @@ Fl_Widget::draw_focus(Fl_Boxtype B, int X, int Y, int W, int H) const { } -// redraw this, plus redraw opaque object if there is an outside label -static void redraw_label(Fl_Widget* w) { - w->redraw(); - if (w->label() && (w->align()&15) && !(w->align() & FL_ALIGN_INSIDE)) { - for (Fl_Widget *p = w->parent(); p; p = p->parent()) - if (p->box() || !p->parent()) {p->redraw(); break;} - } -} - void Fl_Widget::activate() { if (!active()) { clear_flag(INACTIVE); if (active_r()) { - redraw_label(this); + redraw(); handle(FL_ACTIVATE); if (inside(Fl::focus())) Fl::focus()->take_focus(); } @@ -199,7 +190,7 @@ void Fl_Widget::activate() { void Fl_Widget::deactivate() { if (active_r()) { set_flag(INACTIVE); - redraw_label(this); + redraw(); handle(FL_DEACTIVATE); fl_throw_focus(this); } else { @@ -217,7 +208,7 @@ void Fl_Widget::show() { if (!visible()) { clear_flag(INVISIBLE); if (visible_r()) { - redraw_label(this); + redraw(); handle(FL_SHOW); if (inside(Fl::focus())) Fl::focus()->take_focus(); } @@ -250,5 +241,5 @@ int Fl_Widget::contains(const Fl_Widget *o) const { } // -// End of "$Id: Fl_Widget.cxx,v 1.5.2.4.2.17 2002/05/24 14:19:19 easysw Exp $". +// End of "$Id: Fl_Widget.cxx,v 1.5.2.4.2.18 2002/06/02 17:52:36 easysw Exp $". // |
