From e739ed07dc3f7c77f8f07cede822449747fd573f Mon Sep 17 00:00:00 2001 From: Felix Janda Date: Thu, 28 Dec 2017 15:36:03 +0100 Subject: [PATCH] Fix broken double-width chars when displaying status leds --- src/bfu/leds.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bfu/leds.c b/src/bfu/leds.c index 5cb767798..fc2c92a31 100644 --- a/src/bfu/leds.c +++ b/src/bfu/leds.c @@ -285,6 +285,13 @@ draw_leds(struct session *ses) term->leds_length += LEDS_COUNT + 2; end: +#ifdef CONFIG_UTF8 + if (term->utf8_cp) { + struct box box; + set_box(&box, xpos, ypos, LEDS_COUNT + 1, 1); + fix_dwchar_around_box(term, &box, 0, 0, 0); + } +#endif /* Redraw each 100ms. */ if (!drawing && redraw_timer == TIMER_ID_UNDEF) { milliseconds_T delay = compute_redraw_interval();