Fix redraw area for focus box on buttons with no box.

Typo in comments for new string functions.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2002-05-17 11:31:09 +00:00
parent 8b3472fa1f
commit 6a726f5087
2 changed files with 8 additions and 10 deletions

View File

@ -1,5 +1,5 @@
//
// "$Id: Fl_Button.cxx,v 1.4.2.6.2.13 2002/05/15 16:50:27 easysw Exp $"
// "$Id: Fl_Button.cxx,v 1.4.2.6.2.14 2002/05/17 11:31:09 easysw Exp $"
//
// Button widget for the Fast Light Tool Kit (FLTK).
//
@ -113,11 +113,9 @@ int Fl_Button::handle(int event) {
// Buttons with the FL_NO_BOX boxtype need a parent to
// redraw, since it is responsible for redrawing the
// background...
Fl_Widget *p;
for (p = parent(); p; p = p->parent())
if (p->box() != FL_NO_BOX) break;
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);
int X = x() > 0 ? x() - 1 : 0;
int Y = y() > 0 ? y() - 1 : 0;
window()->damage(FL_DAMAGE_EXPOSE, X, Y, w() + 2, h() + 2);
}
else redraw();
return 1;
@ -149,5 +147,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.13 2002/05/15 16:50:27 easysw Exp $".
// End of "$Id: Fl_Button.cxx,v 1.4.2.6.2.14 2002/05/17 11:31:09 easysw Exp $".
//

View File

@ -1,5 +1,5 @@
/*
* "$Id: flstring.c,v 1.1.2.1 2002/05/16 12:47:43 easysw Exp $"
* "$Id: flstring.c,v 1.1.2.2 2002/05/17 11:31:09 easysw Exp $"
*
* BSD string functions for the Fast Light Tool Kit (FLTK).
*
@ -68,7 +68,7 @@ fl_strlcat(char *dst, /* O - Destination string */
# if !HAVE_STRLCPY
/*
* 'fl_strlcat()' - Safely copy two strings.
* 'fl_strlcpy()' - Safely copy two strings.
*/
size_t /* O - Length of string */
@ -101,5 +101,5 @@ fl_strlcpy(char *dst, /* O - Destination string */
/*
* End of "$Id: flstring.c,v 1.1.2.1 2002/05/16 12:47:43 easysw Exp $".
* End of "$Id: flstring.c,v 1.1.2.2 2002/05/17 11:31:09 easysw Exp $".
*/