[rect] Fix variables name.

This commit is contained in:
Lorenzo Cogotti 2022-08-16 11:29:34 +02:00
parent 5902182543
commit 96e03c54a5
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ function rect.union(x1,y1,w1,h1, x2,y2,w2,h2)
x1 = min(x1, x2)
y1 = min(y1, y2)
xw1 = max(xw1, xw2)
xh1 = max(xh1, xh2)
yh1 = max(yh1, yh2)
return x1, y1, xw1 - x1, yh1 - y1
end