aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generic/Draw.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/generic/Draw.c b/generic/Draw.c
index 9405546..ac59317 100644
--- a/generic/Draw.c
+++ b/generic/Draw.c
@@ -1444,9 +1444,6 @@ ZnComputeAxialGradient(ZnWInfo *wi,
c = shape->contours;
ZnResetBBox(&bbox);
for (i = 0; i < shape->num_contours; i++, c++) {
- if (c->cw && (shape->num_contours > 1)) {
- continue;
- }
ZnListAssertSize(wi->work_pts, c->num_points);
points = ZnListArray(wi->work_pts);
ZnTransformPoints(transfo1, c->points, points, c->num_points);
@@ -1491,9 +1488,6 @@ ZnComputeRadialGradient(ZnWInfo *wi,
c = shape->contours;
dist = 0.0;
for (j = 0; j < shape->num_contours; j++, c++) {
- if (c->cw && (shape->num_contours > 1)) {
- continue;
- }
ZnAddPointsToBBox(&bbox, c->points, c->num_points);
}
@@ -1548,9 +1542,6 @@ ZnComputeRadialGradient(ZnWInfo *wi,
*/
c = shape->contours;
for (j = 0; j < shape->num_contours; j++, c++) {
- if (c->cw && (shape->num_contours > 1)) {
- continue;
- }
for (i = 0, points = c->points; i < c->num_points; i++, points++) {
x = points->x - focal_point.x;
y = points->y - focal_point.y;
@@ -1597,9 +1588,6 @@ ZnComputePathGradient(ZnWInfo *wi,
ZnResetBBox(&bbox);
c = shape->contours;
for (j = 0; j < shape->num_contours; j++, c++) {
- if (c->cw && (shape->num_contours > 1)) {
- continue;
- }
ZnAddPointsToBBox(&bbox, c->points, c->num_points);
}
@@ -1799,9 +1787,9 @@ ZnRenderGradient(ZnWInfo *wi,
ZnReal position;
for (k = 0; k < poly->num_contours; k++) {
- if (poly->contours[k].cw) {
+ /* if (poly->contours[k].cw) {
continue;
- }
+ }*/
points = poly->contours[k].points;
num_p = poly->contours[k].num_points;