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

summaryrefslogtreecommitdiff
path: root/source/game/StarDrawable.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-03 08:51:42 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-03 08:51:42 +1000
commit398a5655f42378176a1e596af6d399a180ffb733 (patch)
tree88b5d6a9c389a55f5f10a5243188cdf5de7c553a /source/game/StarDrawable.cpp
parentd7ba1136883de9392bb929df5772dba7f8bf49df (diff)
Add Drawable <-> Lua conversion to LuaGameConverters
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;