diff --git a/services/graphics-server/src/backend/betrusted.rs b/services/graphics-server/src/backend/betrusted.rs index 108ce75f1..3b873ffcc 100644 --- a/services/graphics-server/src/backend/betrusted.rs +++ b/services/graphics-server/src/backend/betrusted.rs @@ -314,8 +314,8 @@ impl FrameBuffer for XousDisplay { /// /// Note: this has not be carefully tested as this API is not used by the legacy code base. /// Anyone using this API for the first time may benefit in checking that it is correct. - fn get_pixel(&mut self, p: Point) -> Option { - let fb: &mut [u32] = unsafe { self.fb.as_slice_mut() }; + fn get_pixel(&self, p: Point) -> Option { + let fb: &[u32] = unsafe { self.fb.as_slice() }; let clip_y: usize; if p.y >= LCD_LINES { return None;