summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Display.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-02-22 17:50:25 +0000
committerManolo Gouy <Manolo>2011-02-22 17:50:25 +0000
commit6d38eb67bcea0621538954b83df4bc2d9fc6bf94 (patch)
treeb00faec82256a708e62e23c29650fc51cdb1e2e3 /src/Fl_Text_Display.cxx
parent6e24f93c1ac7fab493e479e8228b724ba9586071 (diff)
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
Diffstat (limited to 'src/Fl_Text_Display.cxx')
-rw-r--r--src/Fl_Text_Display.cxx2
1 files changed, 2 insertions, 0 deletions
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());