Had switched rows and columns in SetTermSize() call inside TermView's
constructor. Made UpdateSIGWINCH() private and renamed it to _UpdateSIGWINCH(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21699 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -155,7 +155,7 @@ TermView::TermView(BRect frame, const char *command)
|
||||
|
||||
SetMouseCursor();
|
||||
|
||||
SetTermFont(be_plain_font, be_plain_font);
|
||||
SetTermFont(be_fixed_font, be_fixed_font);
|
||||
SetTermColor();
|
||||
|
||||
//SetIMAware(PrefHandler::Default()->getInt32(PREF_IM_AWARE));
|
||||
@@ -172,7 +172,7 @@ TermView::TermView(BRect frame, const char *command)
|
||||
if (status < B_OK)
|
||||
throw status;
|
||||
|
||||
SetTermSize(fTermColumns, fTermRows, false);
|
||||
SetTermSize(fTermRows, fTermColumns, false);
|
||||
|
||||
_InitMouseThread();
|
||||
}
|
||||
@@ -1114,7 +1114,7 @@ TermView::ScrollScreenDraw()
|
||||
|
||||
//! Handler for SIGWINCH
|
||||
void
|
||||
TermView::UpdateSIGWINCH()
|
||||
TermView::_UpdateSIGWINCH()
|
||||
{
|
||||
if (fFrameResized) {
|
||||
if (HasSelection())
|
||||
@@ -1550,7 +1550,7 @@ TermView::MessageReceived(BMessage *msg)
|
||||
// }
|
||||
// }
|
||||
case kUpdateSigWinch:
|
||||
UpdateSIGWINCH();
|
||||
_UpdateSIGWINCH();
|
||||
break;
|
||||
default:
|
||||
BView::MessageReceived(msg);
|
||||
|
||||
@@ -117,7 +117,6 @@ public:
|
||||
void ScrollAtCursor();
|
||||
|
||||
// Other
|
||||
void UpdateSIGWINCH();
|
||||
void DeviceStatusReport(int);
|
||||
void UpdateLine();
|
||||
void ScrollScreen();
|
||||
@@ -186,6 +185,7 @@ private:
|
||||
bool CheckSelectedRegion(const CurPos &pos);
|
||||
inline void Redraw(int, int, int, int);
|
||||
|
||||
void _UpdateSIGWINCH();
|
||||
static void _FixFontAttributes(BFont &font);
|
||||
|
||||
Shell *fShell;
|
||||
|
||||
Reference in New Issue
Block a user