diff options
Diffstat (limited to 'generic/tkCanvPoly.c')
-rw-r--r-- | generic/tkCanvPoly.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/generic/tkCanvPoly.c b/generic/tkCanvPoly.c index ae18067..1677bbb 100644 --- a/generic/tkCanvPoly.c +++ b/generic/tkCanvPoly.c @@ -1771,11 +1771,7 @@ RotatePolygon( for (i = 0, coordPtr = polyPtr->coordPtr; i < polyPtr->numPoints; i++, coordPtr += 2) { - double x = coordPtr[0] - originX; - double y = coordPtr[1] - originY; - - coordPtr[0] = originX + x * c - y * s; - coordPtr[1] = originY + x * s + y * c; + TkRotatePoint(originX, originY, s, c, &coordPtr[0], &coordPtr[1]); } ComputePolygonBbox(canvas, polyPtr); } |