… | |
… | |
640 | l.touch (); |
640 | l.touch (); |
641 | } |
641 | } |
642 | |
642 | |
643 | // erase newly scrolled-in lines |
643 | // erase newly scrolled-in lines |
644 | for (int i = count; i--; ) |
644 | for (int i = count; i--; ) |
645 | { |
645 | scr_blank_screen_mem (ROW(nrow - 1 - i), rstyle); |
646 | // basically this is a slightly optimized scr_blank_screen_mem |
|
|
647 | // it is worth the effort on slower machines |
|
|
648 | line_t &l = ROW(nrow - 1 - i); |
|
|
649 | |
|
|
650 | scr_blank_line (l, 0, l.l, rstyle); |
|
|
651 | |
|
|
652 | l.l = 0; |
|
|
653 | l.f = 0; |
|
|
654 | } |
|
|
655 | |
646 | |
656 | // now copy lines below the scroll region bottom to the |
647 | // now copy lines below the scroll region bottom to the |
657 | // bottom of the screen again, so they look as if they |
648 | // bottom of the screen again, so they look as if they |
658 | // hadn't moved. |
649 | // hadn't moved. |
659 | for (int i = nrow; --i > row2; ) |
650 | for (int i = nrow; --i > row2; ) |