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 /draw/draw_mesh.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 'draw/draw_mesh.c')
-rw-r--r-- | draw/draw_mesh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/draw_mesh.c b/draw/draw_mesh.c index e6812d77..1d6f1759 100644 --- a/draw/draw_mesh.c +++ b/draw/draw_mesh.c @@ -509,7 +509,7 @@ fz_paint_mesh(fz_context *ctx, fz_shade *shade, fz_matrix ctm, fz_pixmap *dest, tri[k][2] = *mesh++ * 255; else { - fz_convert_color(ctx, shade->colorspace, mesh, dest->colorspace, tri[k] + 2); + fz_convert_color(ctx, dest->colorspace, tri[k] + 2, shade->colorspace, mesh); for (i = 0; i < dest->colorspace->n; i++) tri[k][i + 2] *= 255; mesh += shade->colorspace->n; @@ -539,7 +539,7 @@ fz_paint_shade(fz_context *ctx, fz_shade *shade, fz_matrix ctm, fz_pixmap *dest, { for (i = 0; i < 256; i++) { - fz_convert_color(ctx, shade->colorspace, shade->function[i], dest->colorspace, color); + fz_convert_color(ctx, dest->colorspace, color, shade->colorspace, shade->function[i]); for (k = 0; k < dest->colorspace->n; k++) clut[i][k] = color[k] * 255; clut[i][k] = shade->function[i][shade->colorspace->n] * 255; |