Merge branch 'main' into pddb-feat-down

This commit is contained in:
bunnie 2025-03-03 02:17:36 +08:00 committed by GitHub
commit 56890c35c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,8 +179,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<ColorNative> {
let fb: &mut [u32] = &mut self.emulated_buffer;
fn get_pixel(&self, p: Point) -> Option<ColorNative> {
let fb: &[u32] = &self.emulated_buffer;
let clip_y: usize;
if p.y >= LCD_LINES {
return None;