Fix undercurl
This commit is contained in:
parent
9b6c744fa3
commit
104cb13740
@ -106,7 +106,7 @@ fn draw_underline(
|
|||||||
let undercurl_height = (underline_thickness * 4.0).min(max_undercurl_height);
|
let undercurl_height = (underline_thickness * 4.0).min(max_undercurl_height);
|
||||||
let undercurl_y = line_y + underline_position - undercurl_height / 2.0;
|
let undercurl_y = line_y + underline_position - undercurl_height / 2.0;
|
||||||
|
|
||||||
pangocairo::functions::error_underline_path(ctx, line_x, undercurl_y, char_width, undercurl_height);
|
pangocairo::functions::show_error_underline(ctx, line_x, undercurl_y, char_width, undercurl_height);
|
||||||
} else if cell.attrs.underline {
|
} else if cell.attrs.underline {
|
||||||
let fg = color_model.actual_cell_fg(cell);
|
let fg = color_model.actual_cell_fg(cell);
|
||||||
ctx.set_source_rgb(fg.0, fg.1, fg.2);
|
ctx.set_source_rgb(fg.0, fg.1, fg.2);
|
||||||
|
Loading…
Reference in New Issue
Block a user