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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user