diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-29 18:42:57 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-29 18:42:57 +0000 |
| commit | bffa1f05ac0a5234ee21e1a46a363af19ddee367 (patch) | |
| tree | caa305c19f6a7bfb3fbc6d83dfd5153e85b902d3 /render.c | |
| parent | render: draw_underline: use font_baseline() for baseline calculation (diff) | |
render: draw_strikeout: use font_baseline() for baseline calculation
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
