From 0236f702b4e9226ed26a631d621d0cf73f950d29 Mon Sep 17 00:00:00 2001 From: Valerie Date: Wed, 30 Oct 2024 21:37:38 -0400 Subject: [PATCH] changed small scaling to be 5:3 with rounding --- src/draw.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/draw.rs b/src/draw.rs index 369e398..f4e6eb5 100644 --- a/src/draw.rs +++ b/src/draw.rs @@ -118,7 +118,7 @@ impl Flag { Flag::Stripes(colors) => { let count = colors.len() as u16; - let (width, height) = state.size.get(count * 3, count); + let (width, height) = state.size.get((count * 20 + 3) / 6, count); if height < count { error::too_small(width, height); } fg_stripes(colors, width, height) },