summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-03-15 22:50:53 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-03-15 22:50:53 +0000
commit93a2170661d132d8c054035ae502db5da9237844 (patch)
tree8b4995a11c9feddf5cc03d05995a9d59b72274bd /src
parent23f90b2301660eba8cadf4185dd6f473585d2de0 (diff)
fixed frame drawing of Fl_Text_Display (STR #762.2). Thanks for the patch proposal to Alessandro Portale.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4123 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Text_Display.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index addf3d87a..71dcc118e 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -2894,14 +2894,13 @@ void Fl_Text_Display::draw(void) {
// printf("drawing all (box = %d)\n", box());
// draw the box()
int W = w(), H = h();
+ draw_box(box(), x(), y(), W, H, color());
if (mHScrollBar->visible())
W -= scrollbar_width();
if (mVScrollBar->visible())
H -= scrollbar_width();
- draw_box(box(), x(), y(), W, H, color());
-
// left margin
fl_rectf(text_area.x-LEFT_MARGIN, text_area.y-TOP_MARGIN,
LEFT_MARGIN, text_area.h+TOP_MARGIN+BOTTOM_MARGIN,