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
This commit is contained in:
Matthias Melcher
2005-03-15 22:50:53 +00:00
parent 23f90b2301
commit 93a2170661
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -1,5 +1,6 @@
CHANGES IN FLTK 1.1.7 CHANGES IN FLTK 1.1.7
- fixed frame drawing of Fl_Text_Display (STR #762.2)
- Documentation fixes (STR #648, STR #692, STR #730, STR - Documentation fixes (STR #648, STR #692, STR #730, STR
#744, STR #745) #744, STR #745)
- Fl_Clock_Output::value() did not return the previously - Fl_Clock_Output::value() did not return the previously
+1 -2
View File
@@ -2894,14 +2894,13 @@ void Fl_Text_Display::draw(void) {
// printf("drawing all (box = %d)\n", box()); // printf("drawing all (box = %d)\n", box());
// draw the box() // draw the box()
int W = w(), H = h(); int W = w(), H = h();
draw_box(box(), x(), y(), W, H, color());
if (mHScrollBar->visible()) if (mHScrollBar->visible())
W -= scrollbar_width(); W -= scrollbar_width();
if (mVScrollBar->visible()) if (mVScrollBar->visible())
H -= scrollbar_width(); H -= scrollbar_width();
draw_box(box(), x(), y(), W, H, color());
// left margin // left margin
fl_rectf(text_area.x-LEFT_MARGIN, text_area.y-TOP_MARGIN, fl_rectf(text_area.x-LEFT_MARGIN, text_area.y-TOP_MARGIN,
LEFT_MARGIN, text_area.h+TOP_MARGIN+BOTTOM_MARGIN, LEFT_MARGIN, text_area.h+TOP_MARGIN+BOTTOM_MARGIN,