mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 12:46:42 +01:00
wip: zoom lock
This commit is contained in:
parent
94491a323a
commit
44c28183de
11 changed files with 107 additions and 89 deletions
|
|
@ -9,7 +9,7 @@ render!(Tui: |self: PianoHorizontalNotes<'a>, render|{
|
|||
let note_lo = self.0.note_lo().get();
|
||||
let note_hi = self.0.note_hi();
|
||||
let note_point = self.0.note_point();
|
||||
let source = &self.0.buffer;
|
||||
let source = self.0.buffer.read().unwrap();
|
||||
let [x0, y0, w, h] = render.area().xywh();
|
||||
if h as usize != note_axis {
|
||||
panic!("area height mismatch: {h} <> {note_axis}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue