diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-12 15:05:16 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-12 15:05:16 +0000 |
commit | e49c70808fba2d0d2a691d1568d766bfeee863f0 (patch) | |
tree | a08e2c73b8cdae24627dcd762c7a78d318f60f07 /xps/xps_gradient.c | |
parent | 2b7f3d1035f4bae9c189e0e6fcbb907ca46538c4 (diff) | |
download | mupdf-e49c70808fba2d0d2a691d1568d766bfeee863f0.tar.xz |
Change order of params in fz_convert_color to C standard.
C's standard is copy(dst, src), so we move to adopt that here.
Hopefully no one is calling this routine other than us - if they are,
then I apologise! Better to aim for consistency before we freeze
the API at v1.0 than to carry an inconsistent API around ever after.
Diffstat (limited to 'xps/xps_gradient.c')
-rw-r--r-- | xps/xps_gradient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xps/xps_gradient.c b/xps/xps_gradient.c index 5630c976..580a9cb6 100644 --- a/xps/xps_gradient.c +++ b/xps/xps_gradient.c @@ -61,7 +61,7 @@ xps_parse_gradient_stops(xps_document *doc, char *base_uri, xml_element *node, xps_parse_color(doc, base_uri, color, &colorspace, sample); - fz_convert_color(doc->ctx, colorspace, sample + 1, fz_device_rgb, rgb); + fz_convert_color(doc->ctx, fz_device_rgb, rgb, colorspace, sample + 1); stops[count].r = rgb[0]; stops[count].g = rgb[1]; |