diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-29 18:42:45 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-29 18:42:45 +0000 |
| commit | 1f98c8f7879a4066aa089b520084f77568a247d2 (patch) | |
| tree | 46e3cee904645a29667737b81a6a12f51e3cb6cd | |
| parent | render: draw_bar: don't assume height == ascent+descent (diff) | |
render: draw_underline: use font_baseline() for baseline calculation
| -rw-r--r-- | render.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -116,7 +116,7 @@ draw_underline(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->underline.thickness; int y_under = baseline - font->underline.position - width / 2; |
