DRYer
This commit is contained in:
parent
93b05bcd1e
commit
9ac744ae63
@ -314,8 +314,7 @@ def render_special(
|
|||||||
dpi_x: float = 96.,
|
dpi_x: float = 96.,
|
||||||
dpi_y: float = 96.,
|
dpi_y: float = 96.,
|
||||||
) -> CBufType:
|
) -> CBufType:
|
||||||
udelta, uextra = divmod(underline_thickness, 2)
|
underline_position = min(underline_position, cell_height - sum(divmod(underline_thickness, 2)))
|
||||||
underline_position = min(underline_position, cell_height - udelta - uextra)
|
|
||||||
CharTexture = ctypes.c_ubyte * (cell_width * cell_height)
|
CharTexture = ctypes.c_ubyte * (cell_width * cell_height)
|
||||||
|
|
||||||
if missing:
|
if missing:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user