From bffa1f05ac0a5234ee21e1a46a363af19ddee367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 29 Aug 2019 20:42:57 +0200 Subject: [PATCH] render: draw_strikeout: use font_baseline() for baseline calculation --- render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render.c b/render.c index 34367cdd..eaba6b03 100644 --- a/render.c +++ b/render.c @@ -130,7 +130,7 @@ draw_strikeout(const struct terminal *term, pixman_image_t *pix, const struct font *font, const pixman_color_t *color, int x, int y, int cols) { - int baseline = y + term->fextents.height - term->fextents.descent; + int baseline = y + font_baseline(term); int width = font->strikeout.thickness; int y_strike = baseline - font->strikeout.position - width / 2;