mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-10 10:31:09 +00:00
minor console fixes (mostly for Carbon)
This commit is contained in:
parent
15371488f4
commit
6e54d4c229
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user