This commit is contained in:
Kovid Goyal 2021-03-20 13:19:11 +05:30
parent 9dd8185f37
commit 77f7672e98
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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]: