mirror of
https://github.com/sam-astro/Z-Sharp.git
synced 2026-02-04 15:12:11 +00:00
Fix bug with changing Sprite scale at runtime
This commit is contained in:
parent
44b07f402b
commit
61a6d98e49
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user