From a2c193c777fab8e0cc7a87df9df1578dbbbf2555 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 16 Aug 2002 19:51:31 +0000 Subject: [PATCH] One more browser redraw fix from Ken. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2590 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 3 +++ CREDITS | 1 + src/Fl_Browser_.cxx | 9 +++++---- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 296c512f7..c622151cc 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ CHANGES IN FLTK 1.1.0 + - Fixed one more redraw bug in Fl_Browser_ where we + weren't using the box function to erase empty space in + the list. - Fl_Text_Display::buffer() now calls resize() to show the buffer. - Fl_Help_View didn't support HTML comments. diff --git a/CREDITS b/CREDITS index 07e10c886..2447cccf6 100644 --- a/CREDITS +++ b/CREDITS @@ -43,3 +43,4 @@ OTHER CONTRIBUTORS Andrea Suatoni Paul Sydney Jim Wilson + Ken Yarnall diff --git a/src/Fl_Browser_.cxx b/src/Fl_Browser_.cxx index 6d78e7dd6..60e98fc1f 100644 --- a/src/Fl_Browser_.cxx +++ b/src/Fl_Browser_.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Browser_.cxx,v 1.10.2.16.2.15 2002/08/13 15:42:44 easysw Exp $" +// "$Id: Fl_Browser_.cxx,v 1.10.2.16.2.16 2002/08/16 19:51:31 easysw Exp $" // // Base Browser widget class for the Fast Light Tool Kit (FLTK). // @@ -371,8 +371,9 @@ J1: } // erase the area below last line: if (!(damage()&FL_DAMAGE_ALL) && yy < H) { - fl_color(color()); - fl_rectf(X, yy+Y, W, H-yy); + fl_push_clip(X, yy+Y, W, H-yy); + draw_box(box() ? box() : FL_DOWN_BOX, x(), y(), w(), h(), color()); + fl_pop_clip(); } fl_pop_clip(); redraw1 = redraw2 = 0; @@ -756,5 +757,5 @@ void Fl_Browser_::item_select(void*, int) {} int Fl_Browser_::item_selected(void* l) const {return l==selection_;} // -// End of "$Id: Fl_Browser_.cxx,v 1.10.2.16.2.15 2002/08/13 15:42:44 easysw Exp $". +// End of "$Id: Fl_Browser_.cxx,v 1.10.2.16.2.16 2002/08/16 19:51:31 easysw Exp $". //