mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-09 03:49:27 +00:00
...
This commit is contained in:
parent
9dd8185f37
commit
77f7672e98
1 changed files with 3 additions and 3 deletions
|
|
@ -413,9 +413,9 @@ def D(buf: BufType, width: int, height: int, left: bool = True) -> None:
|
|||
|
||||
def draw_parametrized_curve(
|
||||
buf: BufType, width: int, height: int, level: int,
|
||||
xfunc: ParameterizedFunc, yfunc: ParameterizedFunc,
|
||||
supersample_factor: int
|
||||
xfunc: ParameterizedFunc, yfunc: ParameterizedFunc
|
||||
) -> None:
|
||||
supersample_factor = getattr(buf, 'supersample_factor')
|
||||
num_samples = height * 8
|
||||
delta, extra = divmod(thickness(level), 2)
|
||||
delta *= supersample_factor
|
||||
|
|
@ -491,7 +491,7 @@ def rectircle_equations(
|
|||
def rounded_corner(buf: BufType, width: int, height: int, level: int = 1, which: str = '╭') -> None:
|
||||
supersample_factor = getattr(buf, 'supersample_factor')
|
||||
xfunc, yfunc = rectircle_equations(width, height, supersample_factor, which)
|
||||
draw_parametrized_curve(buf, width, height, level, xfunc, yfunc, supersample_factor)
|
||||
draw_parametrized_curve(buf, width, height, level, xfunc, yfunc)
|
||||
|
||||
|
||||
def half_dhline(buf: BufType, width: int, height: int, level: int = 1, which: str = 'left', only: Optional[str] = None) -> Tuple[int, int]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue