mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Minor modification drawing polygon outline.
This commit is contained in:
parent
eb24c091df
commit
0046f35bfa
@ -54,16 +54,13 @@ public:
|
|||||||
|
|
||||||
algo_line(x1, y1, x2, y2, loop, (AlgoPixel)doPointshapePoint);
|
algo_line(x1, y1, x2, y2, loop, (AlgoPixel)doPointshapePoint);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Closed shape
|
// Closed shape (polygon outline)
|
||||||
if (loop->getFilled()) {
|
if (loop->getFilled()) {
|
||||||
int x1 = points[points.size()-1].x;
|
algo_line(points[0].x, points[0].y,
|
||||||
int y1 = points[points.size()-1].y;
|
points[points.size()-1].x,
|
||||||
int x2 = points[0].x;
|
points[points.size()-1].y, loop, (AlgoPixel)doPointshapePoint);
|
||||||
int y2 = points[0].y;
|
|
||||||
|
|
||||||
algo_line(x1, y1, x2, y2, loop, (AlgoPixel)doPointshapePoint);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user