summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-16 21:16:24 +0000
committernicm <nicm>2020-04-16 21:16:24 +0000
commitd8433add47635348808cfd777bf6c7d90bc97d56 (patch)
tree1008c01d6b7132ea24168e40d8de466ef515a28a /screen-write.c
parentd90ca7ecd61ee2f1376801acd61252c03caef3ca (diff)
Do not need to set up a tty context for clearing lines now.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c8
1 files changed, 0 insertions, 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