TermView::Draw(): Fixed off-by-one errors in the checks for the left/bottom

background area.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35590 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-02-23 19:18:17 +00:00
parent c645be3523
commit de699cf2f1

View File

@ -1102,7 +1102,7 @@ TermView::Draw(BRect updateRect)
// clear the area to the right of the line ends
if (y1 <= y2) {
float clearLeft = fColumns * fFontWidth;
if (clearLeft < updateRect.right) {
if (clearLeft <= updateRect.right) {
BRect rect(clearLeft, updateRect.top, updateRect.right,
updateRect.bottom);
SetHighColor(fTextBackColor);
@ -1113,7 +1113,7 @@ TermView::Draw(BRect updateRect)
// clear the area below the last line
if (y2 == fRows - 1) {
float clearTop = _LineOffset(fRows);
if (clearTop < updateRect.bottom) {
if (clearTop <= updateRect.bottom) {
BRect rect(updateRect.left, clearTop, updateRect.right,
updateRect.bottom);
SetHighColor(fTextBackColor);