Fix drawing of status-right when it is aligned to the centre, GitHub

issue 1754.
pull/1758/head
nicm 2019-05-23 14:44:33 +00:00
parent 27bfb56ad5
commit eb8b51effc
1 changed files with 2 additions and 8 deletions

View File

@ -345,12 +345,6 @@ format_draw_centre(struct screen_write_ctx *octx, u_int available, u_int ocx,
/* Write left at 0. */ /* Write left at 0. */
format_draw_put(octx, ocx, ocy, left, frs, 0, 0, width_left); 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. */ /* Write right at available - width_right. */
format_draw_put(octx, ocx, ocy, right, frs, format_draw_put(octx, ocx, ocy, right, frs,
available - width_right, available - width_right,
@ -374,10 +368,10 @@ format_draw_centre(struct screen_write_ctx *octx, u_int available, u_int ocx,
/* /*
* Write after at * Write after at
* middle + width_list / 2 - width_centre. * middle - width_list / 2 + width_list
*/ */
format_draw_put(octx, ocx, ocy, after, frs, format_draw_put(octx, ocx, ocy, after, frs,
middle + width_list / 2, middle - width_list / 2 + width_list,
0, 0,
width_after); width_after);