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:
parent
c645be3523
commit
de699cf2f1
@ -1102,7 +1102,7 @@ TermView::Draw(BRect updateRect)
|
|||||||
// clear the area to the right of the line ends
|
// clear the area to the right of the line ends
|
||||||
if (y1 <= y2) {
|
if (y1 <= y2) {
|
||||||
float clearLeft = fColumns * fFontWidth;
|
float clearLeft = fColumns * fFontWidth;
|
||||||
if (clearLeft < updateRect.right) {
|
if (clearLeft <= updateRect.right) {
|
||||||
BRect rect(clearLeft, updateRect.top, updateRect.right,
|
BRect rect(clearLeft, updateRect.top, updateRect.right,
|
||||||
updateRect.bottom);
|
updateRect.bottom);
|
||||||
SetHighColor(fTextBackColor);
|
SetHighColor(fTextBackColor);
|
||||||
@ -1113,7 +1113,7 @@ TermView::Draw(BRect updateRect)
|
|||||||
// clear the area below the last line
|
// clear the area below the last line
|
||||||
if (y2 == fRows - 1) {
|
if (y2 == fRows - 1) {
|
||||||
float clearTop = _LineOffset(fRows);
|
float clearTop = _LineOffset(fRows);
|
||||||
if (clearTop < updateRect.bottom) {
|
if (clearTop <= updateRect.bottom) {
|
||||||
BRect rect(updateRect.left, clearTop, updateRect.right,
|
BRect rect(updateRect.left, clearTop, updateRect.right,
|
||||||
updateRect.bottom);
|
updateRect.bottom);
|
||||||
SetHighColor(fTextBackColor);
|
SetHighColor(fTextBackColor);
|
||||||
|
Loading…
Reference in New Issue
Block a user