From 705b5d786ca369f8c9d9ea2186ac77dffec6e809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 19 Sep 2021 11:49:49 +0200 Subject: [PATCH] box-drawing: repair debug logs --- box-drawing.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/box-drawing.c b/box-drawing.c index f1789f64..887aa0c9 100644 --- a/box-drawing.c +++ b/box-drawing.c @@ -1969,7 +1969,7 @@ draw_braille(struct buf *buf, wchar_t wc) "braille: before adjusting: " "cell: %dx%d, margin=%dx%d, spacing=%dx%d, width=%d, left=%dx%d", buf->width, buf->height, x_margin, y_margin, x_spacing, y_spacing, - w, x_pix_left, y_pix_left); + w, x_px_left, y_px_left); /* First, try hard to ensure the DOT width is non-zero */ if (x_px_left >= 2 && y_px_left >= 4 && w == 0) { @@ -2001,7 +2001,7 @@ draw_braille(struct buf *buf, wchar_t wc) "braille: after adjusting: " "cell: %dx%d, margin=%dx%d, spacing=%dx%d, width=%d, left=%dx%d", buf->width, buf->height, x_margin, y_margin, x_spacing, y_spacing, - w, x_pix_left, y_pix_left); + w, x_px_left, y_px_left); xassert(x_px_left <= 1 || y_px_left <= 1); xassert(2 * x_margin + 2 * w + x_spacing <= buf->width); @@ -2889,8 +2889,7 @@ box_drawing(const struct terminal *term, wchar_t wc) }, }; - LOG_DBG("LIGHT=%d, HEAVY=%d", - _thickness(&buf, LIGHT), _thickness(&buf, HEAVY)); + LOG_DBG("LIGHT=%d, HEAVY=%d", buf.thickness[LIGHT], buf.thickness[HEAVY]); draw_glyph(&buf, wc);