diff options
author | nicm <nicm> | 2017-11-02 22:00:42 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-11-02 22:00:42 +0000 |
commit | 43264dfbf410489b36343a29cc83798a54df67f8 (patch) | |
tree | 07ba715e14b2a3f792f9dd6b0a3bcd05c4abeb31 /screen-write.c | |
parent | 8d37f699ad2406ad96080b0cee211142dbcb33cb (diff) | |
download | rtmux-43264dfbf410489b36343a29cc83798a54df67f8.tar.gz rtmux-43264dfbf410489b36343a29cc83798a54df67f8.tar.bz2 rtmux-43264dfbf410489b36343a29cc83798a54df67f8.zip |
Make the mode draw function use the parent screen directly rather than
its own to avoid copying twice.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c index 37a51fcb..44c28982 100644 --- a/screen-write.c +++ b/screen-write.c @@ -457,7 +457,7 @@ screen_write_vline(struct screen_write_ctx *ctx, u_int ny, int top, int bottom) screen_write_cursormove(ctx, cx, cy + i); screen_write_putc(ctx, &gc, 'x'); } - screen_write_cursormove(ctx, cx, cy + ny); + screen_write_cursormove(ctx, cx, cy + ny - 1); screen_write_putc(ctx, &gc, bottom ? 'v' : 'x'); screen_write_cursormove(ctx, cx, cy); |