aboutsummaryrefslogtreecommitdiff
path: root/format-draw.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-05-23 17:02:25 +0100
committerThomas Adam <thomas@xteddy.org>2019-05-23 17:02:25 +0100
commit43431e7e8458091c762792db39af3fef65e14412 (patch)
tree9887dff5841a98b0f31e561bd663bbedce9f2c38 /format-draw.c
parent389cf63cbc027c995900bbdd6e68f4f5a96e5c08 (diff)
parenteb8b51effcd2dee7b95c811c894bf29387a272c9 (diff)
downloadrtmux-43431e7e8458091c762792db39af3fef65e14412.tar.gz
rtmux-43431e7e8458091c762792db39af3fef65e14412.tar.bz2
rtmux-43431e7e8458091c762792db39af3fef65e14412.zip
Merge branch 'obsd-master'
Diffstat (limited to 'format-draw.c')
-rw-r--r--format-draw.c10
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);