diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-12 14:45:25 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-12 14:45:25 +0000 |
commit | 2b7f3d1035f4bae9c189e0e6fcbb907ca46538c4 (patch) | |
tree | 38d0e1a3d8d9fc9d5a94514cbe46389a23d8518f /draw/draw_device.c | |
parent | bc9e8f1d6c18b8b37678a07e9266f269fe5bf0dc (diff) | |
download | mupdf-2b7f3d1035f4bae9c189e0e6fcbb907ca46538c4.tar.xz |
Change order of params in fz_convert_pixmap 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_device.c')
-rw-r--r-- | draw/draw_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/draw_device.c b/draw/draw_device.c index de81ccec..e8356f6e 100644 --- a/draw/draw_device.c +++ b/draw/draw_device.c @@ -927,7 +927,7 @@ fz_draw_fill_image(fz_device *devp, fz_image *image, fz_matrix ctm, float alpha) if (pixmap->colorspace != model && !after) { converted = fz_new_pixmap_with_rect(ctx, model, fz_bound_pixmap(pixmap)); - fz_convert_pixmap(ctx, pixmap, converted); + fz_convert_pixmap(ctx, converted, pixmap); pixmap = converted; } @@ -957,7 +957,7 @@ fz_draw_fill_image(fz_device *devp, fz_image *image, fz_matrix ctm, float alpha) else { converted = fz_new_pixmap_with_rect(ctx, model, fz_bound_pixmap(pixmap)); - fz_convert_pixmap(ctx, pixmap, converted); + fz_convert_pixmap(ctx, converted, pixmap); pixmap = converted; } } |