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 /fitz/image_tiff.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 'fitz/image_tiff.c')
-rw-r--r-- | fitz/image_tiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/image_tiff.c b/fitz/image_tiff.c index 76f08447..ffd0ea88 100644 --- a/fitz/image_tiff.c +++ b/fitz/image_tiff.c @@ -789,7 +789,7 @@ fz_load_tiff(fz_context *ctx, unsigned char *buf, int len) if (image->n == 5) { fz_pixmap *rgb = fz_new_pixmap(tiff.ctx, fz_device_rgb, image->w, image->h); - fz_convert_pixmap(tiff.ctx, image, rgb); + fz_convert_pixmap(tiff.ctx, rgb, image); rgb->xres = image->xres; rgb->yres = image->yres; fz_drop_pixmap(ctx, image); |