Author: bonefish Date: 2010-02-23 20:18:17 +0100 (Tue, 23 Feb 2010) New Revision: 35590 Changeset: http://dev.haiku-os.org/changeset/35590/haiku Modified: haiku/trunk/src/apps/terminal/TermView.cpp Log: TermView::Draw(): Fixed off-by-one errors in the checks for the left/bottom background area. Modified: haiku/trunk/src/apps/terminal/TermView.cpp =================================================================== --- haiku/trunk/src/apps/terminal/TermView.cpp 2010-02-23 19:00:52 UTC (rev 35589) +++ haiku/trunk/src/apps/terminal/TermView.cpp 2010-02-23 19:18:17 UTC (rev 35590) @@ -1102,7 +1102,7 @@ // 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 @@ // 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);