diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-01 13:19:05 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-01 13:19:05 +0100 |
commit | 93dca5ab3f001343eadc4b8ff2e0cfb3709bf5c7 (patch) | |
tree | 0edb86c572036e0d238036e80103a522e2aa03a3 /screen-write.c | |
parent | 5ce194f15dddff403506255d1e67c101a7ebef7f (diff) | |
download | rtmux-93dca5ab3f001343eadc4b8ff2e0cfb3709bf5c7.tar.gz rtmux-93dca5ab3f001343eadc4b8ff2e0cfb3709bf5c7.tar.bz2 rtmux-93dca5ab3f001343eadc4b8ff2e0cfb3709bf5c7.zip |
Move size to tty_ctx.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 3 |
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; |