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();
|
SetMouseCursor();
|
||||||
|
|
||||||
SetTermFont(be_plain_font, be_plain_font);
|
SetTermFont(be_fixed_font, be_fixed_font);
|
||||||
SetTermColor();
|
SetTermColor();
|
||||||
|
|
||||||
//SetIMAware(PrefHandler::Default()->getInt32(PREF_IM_AWARE));
|
//SetIMAware(PrefHandler::Default()->getInt32(PREF_IM_AWARE));
|
||||||
@@ -172,7 +172,7 @@ TermView::TermView(BRect frame, const char *command)
|
|||||||
if (status < B_OK)
|
if (status < B_OK)
|
||||||
throw status;
|
throw status;
|
||||||
|
|
||||||
SetTermSize(fTermColumns, fTermRows, false);
|
SetTermSize(fTermRows, fTermColumns, false);
|
||||||
|
|
||||||
_InitMouseThread();
|
_InitMouseThread();
|
||||||
}
|
}
|
||||||
@@ -1114,7 +1114,7 @@ TermView::ScrollScreenDraw()
|
|||||||
|
|
||||||
//! Handler for SIGWINCH
|
//! Handler for SIGWINCH
|
||||||
void
|
void
|
||||||
TermView::UpdateSIGWINCH()
|
TermView::_UpdateSIGWINCH()
|
||||||
{
|
{
|
||||||
if (fFrameResized) {
|
if (fFrameResized) {
|
||||||
if (HasSelection())
|
if (HasSelection())
|
||||||
@@ -1550,7 +1550,7 @@ TermView::MessageReceived(BMessage *msg)
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
case kUpdateSigWinch:
|
case kUpdateSigWinch:
|
||||||
UpdateSIGWINCH();
|
_UpdateSIGWINCH();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
BView::MessageReceived(msg);
|
BView::MessageReceived(msg);
|
||||||
|
|||||||
@@ -117,7 +117,6 @@ public:
|
|||||||
void ScrollAtCursor();
|
void ScrollAtCursor();
|
||||||
|
|
||||||
// Other
|
// Other
|
||||||
void UpdateSIGWINCH();
|
|
||||||
void DeviceStatusReport(int);
|
void DeviceStatusReport(int);
|
||||||
void UpdateLine();
|
void UpdateLine();
|
||||||
void ScrollScreen();
|
void ScrollScreen();
|
||||||
@@ -186,6 +185,7 @@ private:
|
|||||||
bool CheckSelectedRegion(const CurPos &pos);
|
bool CheckSelectedRegion(const CurPos &pos);
|
||||||
inline void Redraw(int, int, int, int);
|
inline void Redraw(int, int, int, int);
|
||||||
|
|
||||||
|
void _UpdateSIGWINCH();
|
||||||
static void _FixFontAttributes(BFont &font);
|
static void _FixFontAttributes(BFont &font);
|
||||||
|
|
||||||
Shell *fShell;
|
Shell *fShell;
|
||||||
|
|||||||
Reference in New Issue
Block a user