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
This commit is contained in:
@@ -353,10 +353,10 @@ TermView::SetTermSize(int rows, int cols, bool resize)
|
|||||||
fScrTop = 0;
|
fScrTop = 0;
|
||||||
fScrBot = fTermRows - 1;
|
fScrBot = fTermRows - 1;
|
||||||
|
|
||||||
BRect rect(0, 0, fTermColumns * fFontWidth, fTermRows * fFontHeight);
|
BRect rect(0, 0, fTermColumns * fFontWidth - 1, fTermRows * fFontHeight - 1);
|
||||||
|
|
||||||
if (resize)
|
if (resize)
|
||||||
ResizeTo(fTermColumns * fFontWidth - 1, fTermRows * fFontHeight -1);
|
ResizeTo(rect.Width(), rect.Height());
|
||||||
|
|
||||||
return rect;
|
return rect;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user