Minor modification drawing polygon outline.

This commit is contained in:
David Capello 2010-03-24 03:16:49 -03:00
parent eb24c091df
commit 0046f35bfa

View File

@ -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);
}
} }
} }