Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarDrawable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarDrawable.cpp')
-rw-r--r--source/game/StarDrawable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/game/StarDrawable.cpp b/source/game/StarDrawable.cpp
index c7311ae..08c14be 100644
--- a/source/game/StarDrawable.cpp
+++ b/source/game/StarDrawable.cpp
@@ -95,7 +95,8 @@ Drawable Drawable::makeImage(AssetPath image, float pixelSize, bool centered, Ve
transformation.translate(-imageSize / 2);
}
- transformation.scale(pixelSize);
+ if (pixelSize != 1.0f)
+ transformation.scale(pixelSize);
drawable.part = ImagePart{move(image), move(transformation)};
drawable.position = position;