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

@@ -32,7 +32,7 @@ function Renderer:renderOutline (widget, window)
love.graphics.push('all')
love.graphics.setColor(widget.outline)
love.graphics.rectangle('line', x1, y1, x2 - x1, y2 - y1)
love.graphics.rectangle('line', x1 - 0.5, y1 - 0.5, x2 - x1, y2 - y1)
love.graphics.pop()
end