summaryrefslogtreecommitdiff
path: root/source/xps/xps-path.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/xps/xps-path.c')
-rw-r--r--source/xps/xps-path.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/xps/xps-path.c b/source/xps/xps-path.c
index 731ffe9c..c60934a2 100644
--- a/source/xps/xps-path.c
+++ b/source/xps/xps-path.c
@@ -55,9 +55,9 @@ xps_draw_arc_segment(fz_context *ctx, xps_document *doc, fz_path *path, const fz
fz_point p;
while (th1 < th0)
- th1 += (float)M_PI * 2;
+ th1 += FZ_PI * 2;
- d = (float)M_PI / 180; /* 1-degree precision */
+ d = FZ_PI / 180; /* 1-degree precision */
if (iscw)
{
@@ -69,7 +69,7 @@ xps_draw_arc_segment(fz_context *ctx, xps_document *doc, fz_path *path, const fz
}
else
{
- th0 += (float)M_PI * 2;
+ th0 += FZ_PI * 2;
for (t = th0 - d; t > th1 + d/2; t -= d)
{
fz_transform_point_xy(&p, mtx, cosf(t), sinf(t));
@@ -202,9 +202,9 @@ xps_draw_arc(fz_context *ctx, xps_document *doc, fz_path *path,
th1 = angle_between(coord1, coord2);
dth = angle_between(coord3, coord4);
if (dth < 0 && !is_clockwise)
- dth += (((float)M_PI / 180) * 360);
+ dth += ((FZ_PI / 180) * 360);
if (dth > 0 && is_clockwise)
- dth -= (((float)M_PI / 180) * 360);
+ dth -= ((FZ_PI / 180) * 360);
}
fz_pre_scale(fz_pre_rotate(fz_translate(&mtx, cx, cy), rotation_angle), rx, ry);