mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-02-21 16:29:04 +01:00
This commit is contained in:
parent
82ff49b386
commit
2d7ca155e0
7 changed files with 38 additions and 29 deletions
|
|
@ -135,7 +135,7 @@ audio!(|self: Lv2, _client, scope|{
|
|||
impl Draw<TuiOut> for Lv2 {
|
||||
fn draw (&self, to: &mut TuiOut) {
|
||||
let area = to.area();
|
||||
let [x, y, _, height] = area;
|
||||
let XYWH(x, y, _, height) = area;
|
||||
let mut width = 20u16;
|
||||
let start = self.selected.saturating_sub((height as usize / 2).saturating_sub(1));
|
||||
let end = start + height as usize - 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue