456
456
void Screen::getImage( Character* dest, int size, int startLine, int endLine ) const
459
459
Q_ASSERT( endLine >= startLine && endLine < history->getLines() + lines );
461
461
const int mergedLines = endLine - startLine + 1;
463
463
Q_ASSERT( size >= mergedLines * columns );
465
466
const int linesInHistoryBuffer = qBound(0,history->getLines()-startLine,mergedLines);
466
467
const int linesInScreenBuffer = mergedLines - linesInHistoryBuffer;