diff --git a/src/graphics.rs b/src/graphics.rs index d24b535c..b182e711 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -138,6 +138,11 @@ impl< &self.buffer } + /// get internal buffer as mutable + pub fn buffer_mut(&mut self) -> &mut [u8] { + &mut self.buffer + } + /// Set the display rotation. /// /// This only concerns future drawing made to it. Anything aready drawn