Lines Matching refs:bottom

82 BasicTerminalBuffer::_Invalidate(int32 top, int32 bottom)
84 //debug_printf("%p->BasicTerminalBuffer::_Invalidate(%ld, %ld)\n", this, top, bottom);
85 fDirtyInfo.ExtendDirtyRegion(top, bottom);
981 BasicTerminalBuffer::SetScrollRegion(int32 top, int32 bottom)
984 fScrollBottom = restrict_value(bottom, fScrollTop, fHeight - 1);
1473 BasicTerminalBuffer::_Scroll(int32 top, int32 bottom, int32 numLines)
1486 int32 toHistory = min_c(numLines, bottom - top + 1);
1494 if (numLines >= bottom - top + 1) {
1496 _ClearLines(top, bottom);
1497 } else if (bottom == fHeight - 1) {
1501 for (int32 i = bottom - numLines + 1; i <= bottom; i++)
1509 for (int32 i = fHeight - 1; i > bottom; i--) {
1516 for (int32 i = bottom - numLines + 1; i <= bottom; i++)
1523 // If the top or bottom of the dirty region are above the
1524 // bottom of the scroll region, we have to scroll them up.
1525 if (fDirtyInfo.dirtyTop <= bottom) {
1527 if (fDirtyInfo.dirtyBottom <= bottom)
1531 // numLines above the bottom become dirty
1532 _Invalidate(bottom - numLines + 1, bottom);
1538 _Invalidate(bottom + 1 - numLines, bottom);
1545 if (bottom < fHeight - 1)
1546 _Invalidate(bottom + 1, fHeight - 1);
1547 } else if (numLines >= bottom - top + 1) {
1550 _ClearLines(top, bottom);
1554 for (int32 i = top + numLines; i <= bottom; i++) {
1561 for (int32 i = bottom - numLines + 1; i < top + numLines; i++)
1564 _Invalidate(top, bottom);
1570 if (numLines >= bottom - top + 1) {
1573 _ClearLines(top, bottom);
1579 for (int32 i = bottom - numLines; i >= top; i--) {
1586 for (int32 i = bottom - numLines + 1; i < top + numLines; i++)
1589 _Invalidate(top, bottom);