avoid disrupting existing transformation stack by skipping pushRotateScale rather than setting defaults

This commit is contained in:
yuki 2025-11-11 20:31:37 -03:00
parent d56b42e017
commit d615bed39a

View file

@ -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