From 6d38eb67bcea0621538954b83df4bc2d9fc6bf94 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 22 Feb 2011 17:50:25 +0000 Subject: 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 --- src/Fl_Text_Display.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 3e1f22fef..a8fb8d817 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -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()); -- cgit v1.2.3