diff options
Diffstat (limited to 'gs/base/vdtrace.c')
-rw-r--r-- | gs/base/vdtrace.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gs/base/vdtrace.c b/gs/base/vdtrace.c index 978747e6b..198c65df8 100644 --- a/gs/base/vdtrace.c +++ b/gs/base/vdtrace.c @@ -1,6 +1,6 @@ /* Copyright (C) 2001-2006 Artifex Software, Inc. All Rights Reserved. - + This software is provided AS-IS with no warranty, either express or implied. @@ -46,7 +46,7 @@ static inline double bezier_point(double p0, double p1, double p2, double p3, do } static void vd_flatten(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double p3x, double p3y) -{ +{ #ifdef DEBUG double flat = 0.5; double d2x0 = (p0x - 2 * p1x + p2x), d2y0 = (p0y - 2 * p1y + p2y); @@ -60,11 +60,11 @@ static void vd_flatten(double p0x, double p0y, double p1x, double p1y, double p2 double e = 0.5 / N; for (i = 0; i < N; i++) { - double t = (double)i / N + e; - double px = bezier_point(p0x, p1x, p2x, p3x, t); - double py = bezier_point(p0y, p1y, p2y, p3y, t); + double t = (double)i / N + e; + double px = bezier_point(p0x, p1x, p2x, p3x, t); + double py = bezier_point(p0y, p1y, p2y, p3y, t); - vd_lineto(px, py); + vd_lineto(px, py); } vd_lineto(p3x, p3y); #endif |