avoid disrupting existing transformation stack by skipping pushRotateScale rather than setting defaults
This commit is contained in:
parent
d56b42e017
commit
d615bed39a
1 changed files with 2 additions and 2 deletions
4
main.lua
4
main.lua
|
|
@ -167,8 +167,8 @@ end
|
|||
function pushRotateScale(x, y, r, sx, sy)
|
||||
love.graphics.push()
|
||||
love.graphics.translate(x, y)
|
||||
love.graphics.rotate(r or 0)
|
||||
love.graphics.scale(sx or 1, sy or sx or 1)
|
||||
if r then love.graphics.rotate(r) end
|
||||
if sx then love.graphics.scale(sx, sy or sx or 1) end
|
||||
love.graphics.translate(-x, -y)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue