From d615bed39a559161206741eed87f3105d923fa99 Mon Sep 17 00:00:00 2001 From: yuki Date: Tue, 11 Nov 2025 20:31:37 -0300 Subject: [PATCH] avoid disrupting existing transformation stack by skipping pushRotateScale rather than setting defaults --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 6414ff4..718c23f 100644 --- a/main.lua +++ b/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