changed small scaling to be 5:3 with rounding

This commit is contained in:
Valerie Wolfe 2024-10-30 21:37:38 -04:00
parent 05e1bd48e0
commit 0236f702b4

View file

@ -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)
},