pixel alignment for lines

This commit is contained in:
airstruck
2015-10-24 16:05:49 -04:00
parent 571d84f55e
commit 8f604fb79d
3 changed files with 13 additions and 15 deletions

View File

@@ -214,7 +214,7 @@ function Widget:getRectangle (useMargin, usePadding)
if usePadding then
shrink(self.padding or 0)
end
return x1, y1, x2, y2
return math.floor(x1), math.floor(y1), math.floor(x2), math.floor(y2)
end
function Widget:isAt (x, y)