mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-29 12:50:35 +00:00
Fix Console for Carbon
This commit is contained in:
parent
cbfd5957e9
commit
3c854590b8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user