Skip to content

Commit

Permalink
Fix: fill_solid filling size
Browse files Browse the repository at this point in the history
  • Loading branch information
IniterWorker committed Sep 28, 2024
1 parent 6ea0fe9 commit 0ec2a30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mode/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ where
}

fn clear(&mut self, color: Self::Color) -> Result<(), Self::Error> {
let (width, height) = self.bounds();
let (width, height) = self.dimensions();
self.fill_solid(
&Rectangle {
top_left: Point::new(0, 0),
Expand Down
3 changes: 2 additions & 1 deletion src/mode/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ where
/// # Errors
///
/// This method may return an error if there are communication issues with the display.
/// This method may return an error if there are an out of bounds error.
pub fn set_pixels<T>(
&mut self,
start: (u16, u16),
Expand Down Expand Up @@ -350,7 +351,7 @@ where
}

fn clear(&mut self, color: Self::Color) -> Result<(), Self::Error> {
let (width, height) = self.bounds();
let (width, height) = self.dimensions();
self.fill_solid(
&Rectangle {
top_left: Point::new(0, 0),
Expand Down

0 comments on commit 0ec2a30

Please sign in to comment.