correct scroll direction, at least

This commit is contained in:
🪞👃🪞 2024-12-03 18:50:48 +01:00
parent 3d5ba67354
commit 385d95f800

View file

@ -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;