minor console fixes (mostly for Carbon)

This commit is contained in:
Wolfgang Thaller 2017-04-21 17:54:38 +02:00
parent 15371488f4
commit 6e54d4c229
2 changed files with 6 additions and 7 deletions

View File

@ -221,14 +221,14 @@ void Console::Update()
DrawCells(start, dirtyRect.right, row, needclear);
}
dirtyRect = Rect();
#if TARGET_API_MAC_CARBON
QDFlushPortBuffer(consolePort,NULL);
#endif
if(cursorVisible != cursorDrawn)
{
Rect r = CellRect(cursorX, cursorY);
InvertRect(&r);
if(cursorDrawn)
DrawCell(cursorX, cursorY, true);
else
InvertRect(&r);
cursorDrawn = !cursorDrawn;
}
@ -292,8 +292,7 @@ void Console::InvalidateCursor()
{
PortSetter setport(consolePort);
Rect r = CellRect(cursorX, cursorY);
InvertRect(&r);
DrawCell(cursorX, cursorY, true);
cursorDrawn = false;
}
}

View File

@ -112,7 +112,7 @@ char ConsoleWindow::WaitNextChar()
case inGrow:
{
long growResult = GrowWindow(eventWin, event.where, boundsPtr);
SizeWindow(eventWin, growResult & 0xFFFF, growResult >> 16, true);
SizeWindow(eventWin, growResult & 0xFFFF, growResult >> 16, false);
Reshape(Rect {0, 0, (short) (growResult >> 16), (short) (growResult & 0xFFFF) });
}
break;