From a84802e488d13e357b6f80834eda78d2fe7506e9 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 23 Aug 2010 12:48:03 +0000 Subject: [PATCH] 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 --- src/apps/terminal/TermView.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/apps/terminal/TermView.cpp b/src/apps/terminal/TermView.cpp index 60a498dc15..e9e9ec4f8b 100644 --- a/src/apps/terminal/TermView.cpp +++ b/src/apps/terminal/TermView.cpp @@ -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())