mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
correct scroll direction, at least
This commit is contained in:
parent
3d5ba67354
commit
385d95f800
1 changed files with 2 additions and 2 deletions
|
|
@ -127,7 +127,7 @@ impl<'a> Content for PhraseView<'a> {
|
|||
let src_x = (x as usize + time_start) * time_scale;
|
||||
let src_y = y as usize + note_lo / 2;
|
||||
if src_x < buffer.width && src_y < buffer.height - 1 {
|
||||
buffer.get(src_x, 63 - (buffer.height - src_y - 2)).map(|src|{
|
||||
buffer.get(src_x, (note_hi - y as usize) / 2).map(|src|{
|
||||
cell.set_symbol(src.symbol());
|
||||
cell.set_fg(src.fg);
|
||||
cell.set_bg(src.bg);
|
||||
|
|
@ -280,7 +280,7 @@ impl PhraseEditorModel {
|
|||
}
|
||||
}
|
||||
for y in 0..buf.height {
|
||||
if y >= 64 {
|
||||
if y > 63 {
|
||||
break
|
||||
}
|
||||
let y = 63 - y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue