From b43eee2b3a44e28af1fe445a39957268e03e1276 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Wed, 19 May 2021 05:01:57 +0200 Subject: [PATCH] make it public --- src/dsp/tracker/pattern.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsp/tracker/pattern.rs b/src/dsp/tracker/pattern.rs index 07202fb..09f90ce 100644 --- a/src/dsp/tracker/pattern.rs +++ b/src/dsp/tracker/pattern.rs @@ -230,7 +230,7 @@ pub use hexotk::widgets::UIPatternModel; #[cfg(not(feature="hexotk"))] impl dyn UIPatternModel { - fn change_value(&mut self, row: usize, col: usize, offs: i16) { + pub fn change_value(&mut self, row: usize, col: usize, offs: i16) { let val = self.get_cell_value(row, col) as i16; let val = (val + offs).max(0).min(0xfff); self.set_cell_value(row, col, val as u16);