From 67a1e3dcad3b0a05b0597b95116aa945e1260a0a Mon Sep 17 00:00:00 2001 From: Doruk Date: Wed, 15 Apr 2026 10:02:58 +0300 Subject: [PATCH] Exposed buffer_mut --- src/graphics.rs | 5 +++++ 1 file changed, 5 insertions(+) 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