mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 13:16:44 +01:00
LineBuffer
This commit is contained in:
parent
61af72c281
commit
d75600188e
3 changed files with 92 additions and 3 deletions
|
|
@ -13,8 +13,8 @@ pub struct TransportView<'a> {
|
|||
impl<'a> Render for TransportView<'a> {
|
||||
fn render (&self, buf: &mut Buffer, area: Rect) -> Usually<Rect> {
|
||||
let Rect { x, y, width, .. } = area;
|
||||
draw_play_stop(buf, x + 1, y, &self.playing);
|
||||
if width > 100 {
|
||||
draw_play_stop(buf, x + 1, y, &self.playing);
|
||||
draw_rec(buf, x + 12, y, self.record);
|
||||
draw_dub(buf, x + 19, y, self.overdub);
|
||||
draw_mon(buf, x + 26, y, self.monitor);
|
||||
|
|
@ -26,7 +26,6 @@ impl<'a> Render for TransportView<'a> {
|
|||
);
|
||||
Ok(Rect { x, y, width, height: 1 })
|
||||
} else {
|
||||
draw_play_stop(buf, x + 1, y, &self.playing);
|
||||
draw_bpm(buf, x + 12, y, self.timebase.bpm() as usize, self.quant);
|
||||
draw_timer(buf, x + width - 1, y,
|
||||
self.timebase.ppq() as usize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue