fix
This commit is contained in:
parent
2807cce15f
commit
7cfaff1824
1 changed files with 3 additions and 2 deletions
|
@ -310,8 +310,9 @@ proc drawCorrect(
|
||||||
|
|
||||||
block: # Shrink by 2 as needed
|
block: # Shrink by 2 as needed
|
||||||
var
|
var
|
||||||
dx = matInv * vec2(1, 0)
|
p = matInv * vec2(0 + h, 0 + h)
|
||||||
dy = matInv * vec2(0, 1)
|
dx = matInv * vec2(1 + h, 0 + h) - p
|
||||||
|
dy = matInv * vec2(0 + h, 1 + h) - p
|
||||||
while max(dx.length, dy.length) > 2:
|
while max(dx.length, dy.length) > 2:
|
||||||
b = b.minifyBy2()
|
b = b.minifyBy2()
|
||||||
dx /= 2
|
dx /= 2
|
||||||
|
|
Loading…
Reference in a new issue