diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-04 00:59:49 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-04 00:59:49 +0200 |
commit | 68769d87e0c7fa0a365447d690eca45e48748bc4 (patch) | |
tree | 3aba2bf2952939e6b963ff36e2ddf1c815e4d9c4 /xps/xps_gradient.c | |
parent | 19a4d970f4530ad330e5a7ae28c84692ee5f6bc0 (diff) | |
download | mupdf-68769d87e0c7fa0a365447d690eca45e48748bc4.tar.xz |
xps: Always use floats for floating point math.
Diffstat (limited to 'xps/xps_gradient.c')
-rw-r--r-- | xps/xps_gradient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xps/xps_gradient.c b/xps/xps_gradient.c index b23098bd..f03b8f6d 100644 --- a/xps/xps_gradient.c +++ b/xps/xps_gradient.c @@ -322,13 +322,13 @@ xps_draw_radial_gradient(xps_context *ctx, fz_matrix ctm, yrad = atof(radius_y_att); /* scale the ctm to make ellipses */ - ctm = fz_concat(fz_scale(1.0, yrad / xrad), ctm); + ctm = fz_concat(fz_scale(1, yrad / xrad), ctm); invscale = xrad / yrad; y0 = y0 * invscale; y1 = y1 * invscale; - r0 = 0.0; + r0 = 0; r1 = xrad; xps_draw_one_radial_gradient(ctx, ctm, stops, count, 1, x0, y0, r0, x1, y1, r1); |