mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
80x25
This commit is contained in:
parent
e13569df93
commit
2432f27e8c
3 changed files with 11 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue