From da001601e554b863784bcd6e58cd2faa07336c80 Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Tue, 28 Oct 2025 00:26:37 +0100 Subject: [PATCH] fix wrong sprite scale --- src/widgets/sprite.c3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/sprite.c3 b/src/widgets/sprite.c3 index ab15797..00df363 100644 --- a/src/widgets/sprite.c3 +++ b/src/widgets/sprite.c3 @@ -21,8 +21,8 @@ fn void? Ctx.sprite_id(&ctx, Id id, String name, short size = 0) short height = sprite.h; if (size > 0) { if (sprite.w >= sprite.h) { - width = size; height = (short)(size * (float)height/width); + width = size; } else { width = (short)(size * (float)width/height); height = size;