aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
Diffstat (limited to 'external')
-rw-r--r--external/RoundedRectangleShape.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/external/RoundedRectangleShape.cpp b/external/RoundedRectangleShape.cpp
index 3dc3274..e56cf9f 100644
--- a/external/RoundedRectangleShape.cpp
+++ b/external/RoundedRectangleShape.cpp
@@ -39,8 +39,11 @@ RoundedRectangleShape::RoundedRectangleShape(const Vector2f& size, float radius,
////////////////////////////////////////////////////////////
void RoundedRectangleShape::setSize(const Vector2f& size)
{
- mySize = size;
- update();
+ // Modified by dec05eba
+ if(std::abs(size.x - mySize.x) > 1.0f || std::abs(size.y - mySize.y) > 1.0f) {
+ mySize = size;
+ update();
+ }
}
////////////////////////////////////////////////////////////