Patch by Chris Roberts: calculate Terminal's startup size properly.
Tested with font size 10, 16, 18. Fixes #6102. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38613 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e13706775f
commit
98a5aae9d6
@ -842,6 +842,10 @@ TermWindow::_AddTab(Arguments* args)
|
||||
session->windowTitle = fInitialTitle;
|
||||
fSessions.AddItem(session);
|
||||
|
||||
BFont font;
|
||||
_GetPreferredFont(font);
|
||||
view->SetTermFont(&font);
|
||||
|
||||
int width, height;
|
||||
view->GetFontSize(&width, &height);
|
||||
|
||||
@ -879,10 +883,6 @@ TermWindow::_AddTab(Arguments* args)
|
||||
view->SetEncoding(EncodingID(
|
||||
PrefHandler::Default()->getString(PREF_TEXT_ENCODING)));
|
||||
|
||||
BFont font;
|
||||
_GetPreferredFont(font);
|
||||
view->SetTermFont(&font);
|
||||
|
||||
_SetTermColors(containerView);
|
||||
|
||||
// TODO: No fTabView->Select(tab); ?
|
||||
|
Loading…
Reference in New Issue
Block a user