From 93dca5ab3f001343eadc4b8ff2e0cfb3709bf5c7 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 1 May 2020 13:19:05 +0100 Subject: Move size to tty_ctx. --- screen-write.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'screen-write.c') 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; -- cgit