From 0ccf70c87723756ec0393022ae8089eed1bc117a Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 18 Jan 2008 08:20:32 +0000 Subject: [PATCH] Changing the font incremented the window size of 1 every time. Fixed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23601 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 a167bf3915..a9f8c6c7db 100644 --- a/src/apps/terminal/TermView.cpp +++ b/src/apps/terminal/TermView.cpp @@ -353,10 +353,10 @@ TermView::SetTermSize(int rows, int cols, bool resize) fScrTop = 0; fScrBot = fTermRows - 1; - BRect rect(0, 0, fTermColumns * fFontWidth, fTermRows * fFontHeight); + BRect rect(0, 0, fTermColumns * fFontWidth - 1, fTermRows * fFontHeight - 1); if (resize) - ResizeTo(fTermColumns * fFontWidth - 1, fTermRows * fFontHeight -1); + ResizeTo(rect.Width(), rect.Height()); return rect; }