Fix Console for Carbon

This commit is contained in:
Wolfgang Thaller 2015-10-16 18:02:50 +02:00
parent cbfd5957e9
commit 3c854590b8
1 changed files with 10 additions and 1 deletions

View File

@ -88,8 +88,17 @@ char ConsoleWindow::WaitNextChar()
realConsole = windows[(WindowPtr)event.message];
if(realConsole)
{
Rect updateRect;
BeginUpdate(eventWin);
realConsole->Draw((*qd.thePort->visRgn)->rgnBBox);
#if TARGET_API_MAC_CARBON
RgnHandle rgn = NewRgn();
GetPortVisibleRegion(GetWindowPort(eventWin), rgn);
GetRegionBounds(rgn, &updateRect);
DisposeRgn(rgn);
#else
updateRect = (*qd.thePort->visRgn)->rgnBBox; // Life was simple back then.
#endif
realConsole->Draw(updateRect);
EndUpdate(eventWin);
}
break;