Rename PaintCmd to Shape

This commit is contained in:
Emil Ernerfeldt
2021-01-10 11:43:01 +01:00
parent a0b0f36d29
commit fb2317c993
33 changed files with 225 additions and 235 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ impl Painting {
for line in &self.lines {
if line.len() >= 2 {
let points: Vec<Pos2> = line.iter().map(|p| rect.min + *p).collect();
painter.add(PaintCmd::line(points, self.stroke));
painter.add(Shape::line(points, self.stroke));
}
}
}