From 61a6d98e49258024dd10badfb6980dfb8adbd3cc Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Mon, 23 May 2022 09:34:20 -0400 Subject: [PATCH] Fix bug with changing `Sprite` scale at runtime --- ZSharp/graphics.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ZSharp/graphics.h b/ZSharp/graphics.h index 5f1c67a..30649af 100644 --- a/ZSharp/graphics.h +++ b/ZSharp/graphics.h @@ -394,6 +394,8 @@ public: // Centers rect.x = position.x - (rect.w / 2); rect.y = position.y - (rect.h / 2); + rect.w = scale.x; + rect.h = scale.y; return 0; }