diff options
author | nicm <nicm> | 2019-05-23 14:44:33 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-05-23 14:44:33 +0000 |
commit | eb8b51effcd2dee7b95c811c894bf29387a272c9 (patch) | |
tree | 798da7a3d4eac82779f18a071fbeee336818c8d2 | |
parent | 27bfb56ad5e19afa686ed6a99bf8b205fac98aef (diff) | |
download | rtmux-eb8b51effcd2dee7b95c811c894bf29387a272c9.tar.gz rtmux-eb8b51effcd2dee7b95c811c894bf29387a272c9.tar.bz2 rtmux-eb8b51effcd2dee7b95c811c894bf29387a272c9.zip |
Fix drawing of status-right when it is aligned to the centre, GitHub
issue 1754.
-rw-r--r-- | format-draw.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/format-draw.c b/format-draw.c index 51404254..f8882ac2 100644 --- a/format-draw.c +++ b/format-draw.c @@ -345,12 +345,6 @@ format_draw_centre(struct screen_write_ctx *octx, u_int available, u_int ocx, /* Write left at 0. */ format_draw_put(octx, ocx, ocy, left, frs, 0, 0, width_left); - /* Write after at available - width_after. */ - format_draw_put(octx, ocx, ocy, after, frs, - available - width_after, - after->cx - width_after, - width_after); - /* Write right at available - width_right. */ format_draw_put(octx, ocx, ocy, right, frs, available - width_right, @@ -374,10 +368,10 @@ format_draw_centre(struct screen_write_ctx *octx, u_int available, u_int ocx, /* * Write after at - * middle + width_list / 2 - width_centre. + * middle - width_list / 2 + width_list */ format_draw_put(octx, ocx, ocy, after, frs, - middle + width_list / 2, + middle - width_list / 2 + width_list, 0, width_after); |