version 1.86, 2021/08/11 09:05:21 |
version 1.87, 2021/08/11 20:49:55 |
|
|
static void |
static void |
screen_redraw_draw_pane(struct screen_redraw_ctx *ctx, struct window_pane *wp) |
screen_redraw_draw_pane(struct screen_redraw_ctx *ctx, struct window_pane *wp) |
{ |
{ |
struct client *c = ctx->c; |
struct client *c = ctx->c; |
struct window *w = c->session->curw->window; |
struct window *w = c->session->curw->window; |
struct tty *tty = &c->tty; |
struct tty *tty = &c->tty; |
struct screen *s; |
struct screen *s = wp->screen; |
struct grid_cell defaults; |
struct colour_palette *palette = &wp->palette; |
u_int i, j, top, x, y, width; |
struct grid_cell defaults; |
|
u_int i, j, top, x, y, width; |
|
|
log_debug("%s: %s @%u %%%u", __func__, c->name, w->id, wp->id); |
log_debug("%s: %s @%u %%%u", __func__, c->name, w->id, wp->id); |
|
|
|
|
top = ctx->statuslines; |
top = ctx->statuslines; |
else |
else |
top = 0; |
top = 0; |
|
|
s = wp->screen; |
|
for (j = 0; j < wp->sy; j++) { |
for (j = 0; j < wp->sy; j++) { |
if (wp->yoff + j < ctx->oy || wp->yoff + j >= ctx->oy + ctx->sy) |
if (wp->yoff + j < ctx->oy || wp->yoff + j >= ctx->oy + ctx->sy) |
continue; |
continue; |
|
|
__func__, c->name, wp->id, i, j, x, y, width); |
__func__, c->name, wp->id, i, j, x, y, width); |
|
|
tty_default_colours(&defaults, wp); |
tty_default_colours(&defaults, wp); |
tty_draw_line(tty, s, i, j, width, x, y, &defaults, |
tty_draw_line(tty, s, i, j, width, x, y, &defaults, palette); |
wp->palette); |
|
} |
} |
} |
} |