Skip to content

Commit

Permalink
do not clear past last pixel
Browse files Browse the repository at this point in the history
  • Loading branch information
almindor committed Aug 26, 2022
1 parent 1c13325 commit bb1be1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ where
let fb_size = self.model.framebuffer_size(self.orientation);
let pixel_count = usize::from(fb_size.0) * usize::from(fb_size.1);
let colors = core::iter::repeat(color).take(pixel_count); // blank entire HW RAM contents
self.set_pixels(0, 0, fb_size.0, fb_size.1, colors)
self.set_pixels(0, 0, fb_size.0 - 1, fb_size.1 - 1, colors)
}
}

Expand Down

0 comments on commit bb1be1f

Please sign in to comment.