fFontHeight and fFontWidth weren't initialized in the TermView constructor, could cause some problems. Might fix bug 201, although I could never reproduce it consistently

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16598 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2006-03-06 10:51:13 +00:00
parent a073611bbc
commit 3e3c4ddcce
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -123,6 +123,13 @@ TermView::TermView(BRect frame, CodeConv *inCodeConv)
fViewThread = -1;
fMouseThread = -1;
fQuitting = 1;
fFontHeight = 0;
fFontWidth = 0;
// Set fonts to some defaults
SetTermFont(be_plain_font, be_plain_font);
InitViewThread();
fDrawRect_p = 0;
@@ -213,7 +220,7 @@ TermView::SetTermColor()
//! Sets half and full fonts for terminal
void
TermView::SetTermFont(BFont *halfFont, BFont *fullFont)
TermView::SetTermFont(const BFont *halfFont, const BFont *fullFont)
{
char buf[4];
int halfWidth = 0;
+1 -1
View File
@@ -105,7 +105,7 @@ public:
//
// Initializer, Set function
//
void SetTermFont(BFont *halfFont, BFont *fullFont);
void SetTermFont(const BFont *halfFont, const BFont *fullFont);
void GetFontSize (int *width, int *height);
BRect SetTermSize (int rows, int cols, bool flag);
void SetTermColor (void);