mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix unnecessary mutability in trait
This commit is contained in:
parent
9abc920bb2
commit
f3fccf9135
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ pub trait FrameBuffer {
|
|||
/// Puts a pixel of ColorNative at x, y. (0, 0) is defined as the lower left corner.
|
||||
fn put_pixel(&mut self, p: Point, color: ColorNative);
|
||||
/// Retrieves a pixel value from the frame buffer; returns None if the point is out of bounds.
|
||||
fn get_pixel(&mut self, p: Point) -> Option<ColorNative>;
|
||||
fn get_pixel(&self, p: Point) -> Option<ColorNative>;
|
||||
/// XORs a pixel to what is in the existing frame buffer. The exact definition of "XOR" is somewhat
|
||||
/// ambiguous for full color systems but is generally meant to imply a light/dark swap of foreground
|
||||
/// and background colors for a color theme.
|
||||
|
|
|
|||
Loading…
Reference in a new issue