Merge branch 'fix-rectircle-subpixel-rendering' of https://github.com/jesseleite/kitty

This commit is contained in:
Kovid Goyal 2021-03-25 09:55:05 +05:30
commit 3d0cff1f47
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -479,11 +479,11 @@ def rectircle_equations(
if left_quadrants:
def x(t: float) -> float:
xterm = 1 - pow(t, yexp)
return cell_width - abs(a * pow(xterm, xexp)) - adjust_x
return math.floor(cell_width - abs(a * pow(xterm, xexp)) - adjust_x)
else:
def x(t: float) -> float:
xterm = 1 - pow(t, yexp)
return abs(a * pow(xterm, xexp))
return math.ceil(abs(a * pow(xterm, xexp)))
return x, y