mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
fix randomizing clip color in arrangement
This commit is contained in:
parent
e4a51c80eb
commit
1d8b5d75b9
3 changed files with 15 additions and 4 deletions
|
|
@ -99,8 +99,10 @@ impl Content for PhraseEditor<Tui> {
|
|||
let src_x = ((x as usize + time_axis.start) * time_axis.scale) as usize;
|
||||
let src_y = (y as usize + note_axis.start) as usize;
|
||||
if src_x < buffer.width && src_y < buffer.height - 1 {
|
||||
let src = buffer.get(src_x, buffer.height - src_y);
|
||||
src.map(|src|{ cell.set_symbol(src.symbol()); cell.set_fg(src.fg); });
|
||||
buffer.get(src_x, buffer.height - src_y).map(|src|{
|
||||
cell.set_symbol(src.symbol());
|
||||
cell.set_fg(src.fg);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue