Closed rfuest closed 3 years ago
ssd1306
master
The bounds check in GraphicsMode::set_pixel is incomplete, which causes overdraw on the right side of the display to be wrapped around to the left side.
GraphicsMode::set_pixel
let style = PrimitiveStyleBuilder::new() .stroke_width(1) .stroke_color(BinaryColor::On) .build(); Circle::new(Point::new(128, 16), 8) .into_styled(style) .draw(&mut disp) .unwrap();
This now uses the bounding_box().contains() method from e-g 0.7. Untested, but closed by #154 nonetheless.
bounding_box().contains()
ssd1306
in use (if applicable):master
Description of the problem
The bounds check in
GraphicsMode::set_pixel
is incomplete, which causes overdraw on the right side of the display to be wrapped around to the left side.Test case (if applicable)