render: draw_strikeout: use font_baseline() for baseline calculation

This commit is contained in:
Daniel Eklöf 2019-08-29 20:42:57 +02:00
parent 1f98c8f787
commit bffa1f05ac
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;