… | |
… | |
225 | |
225 | |
226 | screen.tscroll = 0; |
226 | screen.tscroll = 0; |
227 | screen.bscroll = nrow - 1; |
227 | screen.bscroll = nrow - 1; |
228 | |
228 | |
229 | void *prev_chunk = chunk; |
229 | void *prev_chunk = chunk; |
|
|
230 | size_t prev_chunk_size = chunk_size; |
230 | line_t *prev_drawn_buf = drawn_buf; |
231 | line_t *prev_drawn_buf = drawn_buf; |
231 | line_t *prev_swap_buf = swap_buf; |
232 | line_t *prev_swap_buf = swap_buf; |
232 | line_t *prev_row_buf = row_buf; |
233 | line_t *prev_row_buf = row_buf; |
233 | |
234 | |
234 | int common_col = min (prev_ncol, ncol); |
235 | int common_col = min (prev_ncol, ncol); |
… | |
… | |
408 | if (!ROW (row).valid ()) scr_blank_screen_mem (ROW (row), DEFAULT_RSTYLE); |
409 | if (!ROW (row).valid ()) scr_blank_screen_mem (ROW (row), DEFAULT_RSTYLE); |
409 | if (!swap_buf [row].valid ()) scr_blank_screen_mem (swap_buf [row], DEFAULT_RSTYLE); |
410 | if (!swap_buf [row].valid ()) scr_blank_screen_mem (swap_buf [row], DEFAULT_RSTYLE); |
410 | if (!drawn_buf [row].valid ()) scr_blank_screen_mem (drawn_buf [row], DEFAULT_RSTYLE); |
411 | if (!drawn_buf [row].valid ()) scr_blank_screen_mem (drawn_buf [row], DEFAULT_RSTYLE); |
411 | } |
412 | } |
412 | |
413 | |
413 | free (prev_chunk); |
414 | chunk_free (prev_chunk, prev_chunk_size); |
414 | |
415 | |
415 | free (tabs); |
416 | free (tabs); |
416 | tabs = (char *)rxvt_malloc (ncol); |
417 | tabs = (char *)rxvt_malloc (ncol); |
417 | |
418 | |
418 | for (int col = ncol; col--; ) |
419 | for (int col = ncol; col--; ) |
… | |
… | |
1705 | if (rvideo_state != on) |
1706 | if (rvideo_state != on) |
1706 | { |
1707 | { |
1707 | rvideo_state = on; |
1708 | rvideo_state = on; |
1708 | |
1709 | |
1709 | ::swap (pix_colors[Color_fg], pix_colors[Color_bg]); |
1710 | ::swap (pix_colors[Color_fg], pix_colors[Color_bg]); |
1710 | #ifdef HAVE_BG_PIXMAP |
1711 | #ifdef HAVE_IMG |
1711 | if (bg_img == 0) |
1712 | if (bg_img == 0) |
1712 | #endif |
1713 | #endif |
1713 | XSetWindowBackground (dpy, vt, pix_colors[Color_bg]); |
1714 | XSetWindowBackground (dpy, vt, pix_colors[Color_bg]); |
1714 | |
1715 | |
1715 | XGCValues gcvalue; |
1716 | XGCValues gcvalue; |
… | |
… | |
2050 | */ |
2051 | */ |
2051 | refresh_count = 0; |
2052 | refresh_count = 0; |
2052 | |
2053 | |
2053 | unsigned int old_screen_flags = screen.flags; |
2054 | unsigned int old_screen_flags = screen.flags; |
2054 | bool have_bg = 0; |
2055 | bool have_bg = 0; |
2055 | #ifdef HAVE_BG_PIXMAP |
2056 | #ifdef HAVE_IMG |
2056 | have_bg = bg_img != 0; |
2057 | have_bg = bg_img != 0; |
2057 | #endif |
2058 | #endif |
2058 | ocrow = oldcursor.row; /* is there an old outline cursor on screen? */ |
2059 | ocrow = oldcursor.row; /* is there an old outline cursor on screen? */ |
2059 | |
2060 | |
2060 | /* |
2061 | /* |
… | |
… | |
2531 | void ecb_cold |
2532 | void ecb_cold |
2532 | rxvt_term::scr_recolour (bool refresh) NOTHROW |
2533 | rxvt_term::scr_recolour (bool refresh) NOTHROW |
2533 | { |
2534 | { |
2534 | bool transparent = false; |
2535 | bool transparent = false; |
2535 | |
2536 | |
2536 | #ifdef HAVE_BG_PIXMAP |
2537 | #ifdef HAVE_IMG |
2537 | if (bg_img != 0) |
2538 | if (bg_img != 0) |
2538 | { |
2539 | { |
2539 | # if ENABLE_TRANSPARENCY |
2540 | # if ENABLE_TRANSPARENCY |
2540 | if (bg_flags & BG_IS_TRANSPARENT) |
2541 | if (bg_flags & BG_IS_TRANSPARENT) |
2541 | { |
2542 | { |
… | |
… | |
2563 | if (scrollBar.win) |
2564 | if (scrollBar.win) |
2564 | { |
2565 | { |
2565 | if (transparent) |
2566 | if (transparent) |
2566 | XSetWindowBackgroundPixmap (dpy, scrollBar.win, ParentRelative); |
2567 | XSetWindowBackgroundPixmap (dpy, scrollBar.win, ParentRelative); |
2567 | else |
2568 | else |
2568 | XSetWindowBackground (dpy, scrollBar.win, pix_colors[Color_border]); |
2569 | XSetWindowBackground (dpy, scrollBar.win, pix_colors[scrollBar.color ()]); |
2569 | scrollBar.state = SB_STATE_IDLE; |
2570 | scrollBar.state = SB_STATE_IDLE; |
2570 | scrollBar.show (0); |
2571 | scrollBar.show (0); |
2571 | } |
2572 | } |
2572 | |
2573 | |
2573 | if (refresh) |
2574 | if (refresh) |