Merge branch 'fix-rectircle-subpixel-rendering' of https://github.com/jesseleite/kitty
This commit is contained in:
commit
3d0cff1f47
1 changed files with 2 additions and 2 deletions
|
|
@ -479,11 +479,11 @@ def y(t: float) -> float: # 0 -> bottom of cell, 1 -> middle of cell
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue