Carbon examples: some more port flushing

This commit is contained in:
Wolfgang Thaller 2015-10-12 02:48:43 +02:00
parent 2187affef2
commit 380c8115fe
2 changed files with 4 additions and 1 deletions

View File

@ -176,6 +176,9 @@ void Console::Update()
DrawCells(start, dirtyRect.right, row, needclear);
}
dirtyRect = Rect();
#if TARGET_API_MAC_CARBON
QDFlushPortBuffer(consolePort,NULL);
#endif
}
void Console::putch(char c)

View File

@ -258,7 +258,7 @@ int main()
if(Button())
return 0;
#if TARGET_API_MAC_CARBON
// QDFlushPortBuffer(GetWindowPort(win),NULL);
QDFlushPortBuffer(GetWindowPort(win),NULL);
#endif
}
long endTime = TickCount();