config: add curly-underline-height

This commit is contained in:
Andrew Savchenko 2026-02-15 11:17:36 +11:00
parent 33106514db
commit 9d3b34d0f5
No known key found for this signature in database
GPG key ID: 5023209D10DBA986
4 changed files with 32 additions and 2 deletions

View file

@ -445,7 +445,7 @@ draw_styled_underline(const struct terminal *term, pixman_image_t *pix,
case UNDERLINE_DOUBLE:
case UNDERLINE_CURLY:
y_ofs = min(underline_offset(term, font),
term->cell_height - thickness * 3);
term->cell_height - thickness * term->conf->curly_underline_height_multiplier);
break;
case UNDERLINE_DASHED:
@ -525,7 +525,7 @@ draw_styled_underline(const struct terminal *term, pixman_image_t *pix,
case UNDERLINE_CURLY: {
const int top = y + y_ofs;
const int bot = top + thickness * 3;
const int bot = top + thickness * term->conf->curly_underline_height_multiplier;
const int half_x = x + ceil_w / 2.0, full_x = x + ceil_w;
const double bt_2 = (bot - top) * (bot - top);