This commit is contained in:
🪞👃🪞 2024-06-29 15:44:50 +03:00
parent e13569df93
commit 2432f27e8c
3 changed files with 11 additions and 6 deletions

View file

@ -49,7 +49,7 @@ pub fn timer (buf: &mut Buffer, x: u16, y: u16, beat: usize, steps: usize, time0
pub fn keys (buf: &mut Buffer, area: Rect, note1: u16) -> Usually<Rect> {
let bw = Style::default().dim();
let Rect { x, y, width, height } = area;
let h = 32.max(height.saturating_sub(2)*2)/2;
let h = height.saturating_sub(2);
for i in 0..h {
let y = y + i;
buf.set_string(x + 1, y, KEYS_VERTICAL[(i % 6) as usize], bw);