From 6979fd67ec534287000b5cb9051e973edd8b01b1 Mon Sep 17 00:00:00 2001 From: unspeaker Date: Wed, 10 Jul 2024 21:53:38 +0300 Subject: [PATCH] refactors and cleanups --- src/core/render.rs | 7 +- src/edn.rs | 38 +++++---- src/jack.rs | 38 --------- src/main.rs | 9 +- src/model.rs | 8 +- src/view.rs | 12 ++- src/view/sequencer.rs | 2 +- src/view/transport.rs | 185 ++++++++++++++++++++---------------------- 8 files changed, 126 insertions(+), 173 deletions(-) diff --git a/src/core/render.rs b/src/core/render.rs index 1b70f63c..55b898c2 100644 --- a/src/core/render.rs +++ b/src/core/render.rs @@ -20,14 +20,15 @@ pub fn fill_bg (buf: &mut Buffer, area: Rect, color: Color) { pub trait Blit { // Render something to X, Y coordinates in a buffer, ignoring width/height. - fn blit (&self, buf: &mut Buffer, x: u16, y: u16, style: Option