Re-add a part of the code I shouldn't have removed : this ensures the partial line that may be at the bottom of the screen

if the size of the window is not a multiple of the text font size is cleared.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38317 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues
2010-08-23 12:48:03 +00:00
parent c198735b15
commit a84802e488
+9
View File
@@ -1395,6 +1395,15 @@ TermView::Draw(BRect updateRect)
i += count;
}
}
if (y2 == fRows - 1) {
// There may be some empty space below the last line
BRect rect(updateRect.left, _LineOffset(fRows),
updateRect.right, 0);
rect.bottom = rect.top + fFontHeight - 1;
FillRect(rect);
}
}
if (fInline && fInline->IsActive())