summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-16 15:27:08 +0000
committernicm <nicm>2020-05-16 15:27:08 +0000
commit379ca54c80837d09dff53ffa7b9ea3b80d87096b (patch)
treeb8082ab0152b162a53dff54eadb5e0ed59f895f1 /screen-write.c
parentedeb81ba9e7ef3665f055cc54fee6cfdb3979fea (diff)
Rename and tidy some stuff in struct tty_ctx.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/screen-write.c b/screen-write.c
index e3e51020..32424b39 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -112,6 +112,9 @@ screen_write_initctx(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx,
ttyctx->wp = ctx->wp;
+ ttyctx->sx = screen_size_x(s);
+ ttyctx->sy = screen_size_y(s);
+
ttyctx->ocx = s->cx;
ttyctx->ocy = s->cy;