summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-11-30 15:17:52 +0000
committerManolo Gouy <Manolo>2010-11-30 15:17:52 +0000
commit142f80e8b2f0f406053074f14e2040c36b4a63e5 (patch)
treeb29a09baaf4a093fc2b3db21d0ba793d30042011
parentd2334f610eec4475d975d68df2544a2715ed4497 (diff)
Back to v.7909 because changes in v.7922 don't work with underscores under Linux.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7924 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_Text_Display.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index fa6b5dfe7..588538071 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -451,7 +451,7 @@ void Fl_Text_Display::resize(int X, int Y, int W, int H) {
/**
\brief Refresh a rectangle of the text display.
\param left, top are in coordinates of the text drawing window.
- \param width, height isze in pixels
+ \param width, height size in pixels
*/
void Fl_Text_Display::draw_text( int left, int top, int width, int height ) {
int fontHeight, firstLine, lastLine, line;
@@ -826,7 +826,7 @@ int Fl_Text_Display::position_to_xy( int pos, int* X, int* Y ) const {
}
fontHeight = mMaxsize;
- *Y = text_area.y + visLineNum * fontHeight - 1;
+ *Y = text_area.y + visLineNum * fontHeight;
/* Get the text, length, and buffer position of the line. If the position
is beyond the end of the buffer and should be at the first position on
@@ -1964,7 +1964,7 @@ void Fl_Text_Display::draw_string(int style,
if (!(style & TEXT_ONLY_MASK)) {
fl_color( background );
- fl_rectf( X, Y - 1, toX - X, mMaxsize );
+ fl_rectf( X, Y, toX - X, mMaxsize );
}
if (!(style & BG_ONLY_MASK)) {
fl_color( foreground );
@@ -2022,7 +2022,7 @@ void Fl_Text_Display::clear_rect(int style,
} else {
fl_color( color() );
}
- fl_rectf( X, Y - 1, width, height );
+ fl_rectf( X, Y, width, height );
}