Skip to content

Commit

Permalink
remove more variable
Browse files Browse the repository at this point in the history
  • Loading branch information
2278535805 committed Feb 7, 2025
1 parent 1d11935 commit 5fe1c64
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions prpr/src/core/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ impl Note {
}
let end_height = end_height / res.aspect_ratio * spd;

let clip = false;

let h = if self.time <= res.time { line_height } else { height };
let bottom = h - line_height;
let top = end_height - line_height;
Expand Down Expand Up @@ -295,7 +293,7 @@ impl Note {
dest_size: Some(vec2(scale * 2., top - bottom)),
..Default::default()
},
clip,
false,
);
// head
if res.time < self.time || res.res_pack.info.hold_keep_head {
Expand All @@ -313,7 +311,7 @@ impl Note {
dest_size: Some(hf * 2.),
..Default::default()
},
clip,
false,
);
}
// tail
Expand All @@ -331,7 +329,7 @@ impl Note {
dest_size: Some(hf * 2.),
..Default::default()
},
clip,
false,
);
});
}
Expand Down

0 comments on commit 5fe1c64

Please sign in to comment.