Compare commits
2 commits
05e1bd48e0
...
0670e3796c
Author | SHA1 | Date | |
---|---|---|---|
0670e3796c | |||
0236f702b4 |
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pride"
|
name = "pride"
|
||||||
version = "0.4.1"
|
version = "0.4.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = [ "Valerie Wolfe <sleeplessval@gmail.com>" ]
|
authors = [ "Valerie Wolfe <sleeplessval@gmail.com>" ]
|
||||||
description = "Pride flags in the terminal."
|
description = "Pride flags in the terminal."
|
||||||
|
|
|
@ -118,7 +118,7 @@ impl Flag {
|
||||||
Flag::Stripes(colors)
|
Flag::Stripes(colors)
|
||||||
=> {
|
=> {
|
||||||
let count = colors.len() as u16;
|
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); }
|
if height < count { error::too_small(width, height); }
|
||||||
fg_stripes(colors, width, height)
|
fg_stripes(colors, width, height)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue