mirror of
https://github.com/Feliix42/ssd1675.git
synced 2024-11-24 03:36:30 +00:00
change rect to rectangle in graphics.rs
This commit is contained in:
parent
333edf10f0
commit
67c2b90b2a
1 changed files with 5 additions and 5 deletions
|
@ -175,7 +175,7 @@ where
|
||||||
mod tests {
|
mod tests {
|
||||||
use self::embedded_graphics::coord::Coord;
|
use self::embedded_graphics::coord::Coord;
|
||||||
use self::embedded_graphics::prelude::*;
|
use self::embedded_graphics::prelude::*;
|
||||||
use self::embedded_graphics::primitives::Rect;
|
use self::embedded_graphics::primitives::Rectangle;
|
||||||
use self::embedded_graphics::Drawing;
|
use self::embedded_graphics::Drawing;
|
||||||
use super::*;
|
use super::*;
|
||||||
use {Builder, Color, Dimensions, Display, DisplayInterface, GraphicDisplay, Rotation};
|
use {Builder, Color, Dimensions, Display, DisplayInterface, GraphicDisplay, Rotation};
|
||||||
|
@ -279,8 +279,8 @@ mod tests {
|
||||||
GraphicDisplay::new(build_mock_display(), &mut black_buffer, &mut red_buffer);
|
GraphicDisplay::new(build_mock_display(), &mut black_buffer, &mut red_buffer);
|
||||||
|
|
||||||
display.draw(
|
display.draw(
|
||||||
Rect::new(Coord::new(0, 0), Coord::new(2, 2))
|
Rectangle::new(Coord::new(0, 0), Coord::new(2, 2))
|
||||||
.with_stroke(Some(Color::White))
|
.stroke(Some(Color::White))
|
||||||
.into_iter(),
|
.into_iter(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -306,8 +306,8 @@ mod tests {
|
||||||
GraphicDisplay::new(build_mock_display(), &mut black_buffer, &mut red_buffer);
|
GraphicDisplay::new(build_mock_display(), &mut black_buffer, &mut red_buffer);
|
||||||
|
|
||||||
display.draw(
|
display.draw(
|
||||||
Rect::new(Coord::new(0, 0), Coord::new(2, 2))
|
Rectangle::new(Coord::new(0, 0), Coord::new(2, 2))
|
||||||
.with_stroke(Some(Color::Red))
|
.stroke(Some(Color::Red))
|
||||||
.into_iter(),
|
.into_iter(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue