mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-20 14:15:31 +00:00
Make the calculation of the bound for underline_position more precise
Fixes #5308
This commit is contained in:
parent
546cdbefae
commit
93b05bcd1e
1 changed files with 2 additions and 1 deletions
|
|
@ -314,7 +314,8 @@ def render_special(
|
|||
dpi_x: float = 96.,
|
||||
dpi_y: float = 96.,
|
||||
) -> CBufType:
|
||||
underline_position = min(underline_position, cell_height - underline_thickness)
|
||||
udelta, uextra = divmod(underline_thickness, 2)
|
||||
underline_position = min(underline_position, cell_height - udelta - uextra)
|
||||
CharTexture = ctypes.c_ubyte * (cell_width * cell_height)
|
||||
|
||||
if missing:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue