From d8433add47635348808cfd777bf6c7d90bc97d56 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 16 Apr 2020 21:16:24 +0000 Subject: [PATCH] Do not need to set up a tty context for clearing lines now. --- screen-write.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/screen-write.c b/screen-write.c index 8a2a19e3..bc12b7cd 100644 --- a/screen-write.c +++ b/screen-write.c @@ -957,7 +957,6 @@ screen_write_clearendofline(struct screen_write_ctx *ctx, u_int bg) { struct screen *s = ctx->s; struct grid_line *gl; - struct tty_ctx ttyctx; u_int sx = screen_size_x(s); struct screen_write_collect_item *ci = ctx->item; @@ -970,9 +969,6 @@ screen_write_clearendofline(struct screen_write_ctx *ctx, u_int bg) if (s->cx > sx - 1 || (s->cx >= gl->cellsize && COLOUR_DEFAULT(bg))) return; - screen_write_initctx(ctx, &ttyctx, 1); - ttyctx.bg = bg; - grid_view_clear(s->grid, s->cx, s->cy, sx - s->cx, 1, bg); if (!screen_write_collect_clear_end(ctx, s->cy, s->cx, bg)) { @@ -989,7 +985,6 @@ void screen_write_clearstartofline(struct screen_write_ctx *ctx, u_int bg) { struct screen *s = ctx->s; - struct tty_ctx ttyctx; u_int sx = screen_size_x(s); struct screen_write_collect_item *ci = ctx->item; @@ -998,9 +993,6 @@ screen_write_clearstartofline(struct screen_write_ctx *ctx, u_int bg) return; } - screen_write_initctx(ctx, &ttyctx, 1); - ttyctx.bg = bg; - if (s->cx > sx - 1) grid_view_clear(s->grid, 0, s->cy, sx, 1, bg); else