diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-02-06 20:01:15 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-02-06 20:01:15 +0000 |
commit | 7417e391d5ab127adb6c598776547119f516bb7b (patch) | |
tree | fe721d25daee95d003d66157af1ec1faf6734252 /screen-write.c | |
parent | 1199f8fc59f34f474672cb95a781d3a817d05242 (diff) | |
parent | 10e14ae504df467234284a1040e91d48b41b2dd0 (diff) | |
download | rtmux-7417e391d5ab127adb6c598776547119f516bb7b.tar.gz rtmux-7417e391d5ab127adb6c598776547119f516bb7b.tar.bz2 rtmux-7417e391d5ab127adb6c598776547119f516bb7b.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/screen-write.c b/screen-write.c index 9acb0c03..fe8419e3 100644 --- a/screen-write.c +++ b/screen-write.c @@ -971,24 +971,25 @@ screen_write_clearendofscreen(struct screen_write_ctx *ctx, u_int bg) /* Clear to start of screen. */ void -screen_write_clearstartofscreen(struct screen_write_ctx *ctx) +screen_write_clearstartofscreen(struct screen_write_ctx *ctx, u_int bg) { struct screen *s = ctx->s; struct tty_ctx ttyctx; u_int sx = screen_size_x(s); screen_write_initctx(ctx, &ttyctx); + ttyctx.bg = bg; if (s->cy > 0) { screen_dirty_clear(s, 0, 0, sx - 1, s->cy); - grid_view_clear(s->grid, 0, 0, sx, s->cy, 8); + grid_view_clear(s->grid, 0, 0, sx, s->cy, bg); } if (s->cx > sx - 1) { screen_dirty_clear(s, 0, s->cy, sx - 1, s->cy); - grid_view_clear(s->grid, 0, s->cy, sx, 1, 8); + grid_view_clear(s->grid, 0, s->cy, sx, 1, bg); } else { screen_dirty_clear(s, 0, s->cy, s->cx, s->cy); - grid_view_clear(s->grid, 0, s->cy, s->cx + 1, 1, 8); + grid_view_clear(s->grid, 0, s->cy, s->cx + 1, 1, bg); } tty_write(tty_cmd_clearstartofscreen, &ttyctx); |