Move size to tty_ctx.

This commit is contained in:
Nicholas Marriott
2020-05-01 13:19:05 +01:00
parent 5ce194f15d
commit 93dca5ab3f
3 changed files with 23 additions and 25 deletions

View File

@ -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;