From de699cf2f1e9773f8bd21d62747b30b16a0696d0 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 23 Feb 2010 19:18:17 +0000 Subject: [PATCH] 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 --- src/apps/terminal/TermView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/terminal/TermView.cpp b/src/apps/terminal/TermView.cpp index 7a625e54b1..e7028cf7de 100644 --- a/src/apps/terminal/TermView.cpp +++ b/src/apps/terminal/TermView.cpp @@ -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);