From e217ac0564bea7d20ca69beaad13164e799d8243 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 15 May 2002 16:50:27 +0000 Subject: Optimize redraw of focus stuff in radio/check buttons and tabs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2226 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Button.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Fl_Button.cxx') diff --git a/src/Fl_Button.cxx b/src/Fl_Button.cxx index 2a94d21ed..614ea19be 100644 --- a/src/Fl_Button.cxx +++ b/src/Fl_Button.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Button.cxx,v 1.4.2.6.2.12 2002/03/25 21:08:41 easysw Exp $" +// "$Id: Fl_Button.cxx,v 1.4.2.6.2.13 2002/05/15 16:50:27 easysw Exp $" // // Button widget for the Fast Light Tool Kit (FLTK). // @@ -116,8 +116,8 @@ int Fl_Button::handle(int event) { Fl_Widget *p; for (p = parent(); p; p = p->parent()) if (p->box() != FL_NO_BOX) break; - if (p) p->redraw(); - else window()->redraw(); + if (p) p->damage(FL_DAMAGE_EXPOSE, x(), y(), w() + 1, h() + 1); + else window()->damage(FL_DAMAGE_EXPOSE, x(), y(), w() + 1, h() + 1); } else redraw(); return 1; @@ -149,5 +149,5 @@ Fl_Button::Fl_Button(int x,int y,int w,int h, const char *l) } // -// End of "$Id: Fl_Button.cxx,v 1.4.2.6.2.12 2002/03/25 21:08:41 easysw Exp $". +// End of "$Id: Fl_Button.cxx,v 1.4.2.6.2.13 2002/05/15 16:50:27 easysw Exp $". // -- cgit v1.2.3