… | |
… | |
145 | /* Fill a full line with blanks - make sure it is allocated first */ |
145 | /* Fill a full line with blanks - make sure it is allocated first */ |
146 | void |
146 | void |
147 | rxvt_term::scr_blank_screen_mem (line_t &l, rend_t efs) |
147 | rxvt_term::scr_blank_screen_mem (line_t &l, rend_t efs) |
148 | { |
148 | { |
149 | scr_blank_line (l, 0, ncol, efs); |
149 | scr_blank_line (l, 0, ncol, efs); |
|
|
150 | |
|
|
151 | l.l = 0; |
|
|
152 | l.f = 0; |
150 | } |
153 | } |
151 | |
154 | |
152 | /* ------------------------------------------------------------------------- * |
155 | /* ------------------------------------------------------------------------- * |
153 | * SCREEN INITIALISATION * |
156 | * SCREEN INITIALISATION * |
154 | * ------------------------------------------------------------------------- */ |
157 | * ------------------------------------------------------------------------- */ |
… | |
… | |
639 | } |
642 | } |
640 | } |
643 | } |
641 | |
644 | |
642 | for (int i = count; i--; ) |
645 | for (int i = count; i--; ) |
643 | { |
646 | { |
644 | ROW(row2 - i).l = 0; |
647 | // basically thi is a slightly optimized scr_blank_screen_mem |
645 | scr_blank_screen_mem (ROW(row2 - i), rstyle); |
648 | // it is worth the effort on slower machines |
|
|
649 | line_t &l = ROW(row2 - i); |
|
|
650 | |
|
|
651 | scr_blank_line (l, 0, l.l, rstyle); |
|
|
652 | |
|
|
653 | l.l = 0; |
|
|
654 | l.f = 0; |
646 | } |
655 | } |
647 | |
656 | |
648 | if (OPTION (Opt_scrollWithBuffer) |
657 | if (OPTION (Opt_scrollWithBuffer) |
649 | && view_start != 0 |
658 | && view_start != 0 |
650 | && view_start != saveLines) |
659 | && view_start != saveLines) |
… | |
… | |
1303 | XChangeGC (display->display, gc, GCForeground, &gcvalue); |
1312 | XChangeGC (display->display, gc, GCForeground, &gcvalue); |
1304 | } |
1313 | } |
1305 | |
1314 | |
1306 | for (; num--; row++) |
1315 | for (; num--; row++) |
1307 | { |
1316 | { |
1308 | line_t &l = ROW(row); |
|
|
1309 | l.l = 0; |
|
|
1310 | l.is_longer (0); |
|
|
1311 | scr_blank_screen_mem (l, rstyle); |
1317 | scr_blank_screen_mem (ROW(row), rstyle); |
1312 | scr_blank_line (drawn_buf [row], 0, ncol, ren); |
1318 | scr_blank_line (drawn_buf [row], 0, ncol, ren); |
1313 | } |
1319 | } |
1314 | } |
1320 | } |
1315 | |
1321 | |
1316 | #if ENABLE_FRILLS |
1322 | #if ENABLE_FRILLS |