Fl_Text_Display widget: added a call to paint all the widget area with its background color

when it's fully redrawn, to avoid thin grey lines that appear when this widget is printed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-02-22 17:50:25 +00:00
parent 6e24f93c1a
commit 6d38eb67bc

View File

@ -3359,6 +3359,8 @@ void Fl_Text_Display::draw(void) {
// draw the non-text, non-scrollbar areas.
if (damage() & FL_DAMAGE_ALL) {
// printf("drawing all (box = %d)\n", box());
// draw the background
fl_rectf(text_area.x, text_area.y, text_area.w, text_area.h, color() );
// draw the box()
int W = w(), H = h();
draw_box(box(), x(), y(), W, H, color());