diff options
| author | Manolo Gouy <Manolo> | 2010-11-30 11:07:54 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-11-30 11:07:54 +0000 |
| commit | 1303ce45976d42f3ef289f5419451b8e7f865f2b (patch) | |
| tree | 2a1454d8449dffaf72b49da79989f9c1e602dd7e | |
| parent | cc4e22eabb7a1bab8380b3e178162e441d2a2289 (diff) | |
Fixes STR #2456. The text background was cleared one pixel too low for very "high" characters.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7922 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_Text_Display.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index f1f47de14..fa6b5dfe7 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -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; + *Y = text_area.y + visLineNum * fontHeight - 1; /* 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, toX - X, mMaxsize ); + fl_rectf( X, Y - 1, 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, width, height ); + fl_rectf( X, Y - 1, width, height ); } |
